摘要:
1.XML中执行自定义SQL、 https://blog.csdn.net/u012427355/article/details/80654806 2.注解执行自定义SQL 其实就是把sql改成 阅读全文
posted @ 2018-11-19 11:41
周景白炎
阅读(3735)
评论(0)
推荐(0)
摘要:
SpringBoot通过MyBatis连接数据库有2种方法: 1.注解 2.XML文件 1.注解 1.构建项目 2.添加依赖: 3.配置属性文件: 4.启动类(SpringApplication)添加mapper扫描 5.开发Mapper,Mapper类是访问数据库的接口 添加@Options(us 阅读全文
posted @ 2018-11-19 11:35
周景白炎
阅读(917)
评论(0)
推荐(0)

浙公网安备 33010602011771号