springboot结合MyBatis中使用foreach
废话少说,直接建项目上代码
先建一个springboot web项目或者模块,目录结构如下
在pom.xml中自行加入需要的依赖,application.properties的配置如下
server.port=8888
mybatis.mapper-locations=classpath*:mapper/*Mapper.xml
spring.datasource.url=jdbc:mysql:/...
原创
2019-05-22 15:18:55 ·
1811 阅读 ·
0 评论