整合mybatis相关配置
mybatis:
type-aliases-package: #实体类扫描路径
mapper-locations: classpath:mappers/*.xml #所有mapper映射文件所在目录
mapper:
mappers:#所有mapper需要实现的接口
not-empty:false #进行数据库操作时,是否对属性追加不为空字符串的判断
identity: MYSQL
#分页插件助手的配置
pagehelper:
helper-dialect:mysql
support-methods-arguments:true
整合mybatis依赖导入
写映射文件,有利于dba做sql审核 ,优化
1
mybatis-spring-boot-starter
mapper-spring-boot-starter
pagehelper-spring-boot-starter