@MapperScan和mybatis-plus.mapper-locations

项目截图
@MapperScan和mybatis-plus.mapper-locations

  1. @MapperScan
// 可以配置不同的扫描地址,主要是来扫描 apper接口的也就是dao类,
@MapperScan({"com.xx.xx.mapper","com.xx.xx.mapper"})
  1. mybatis-plus.mapper-locations
#配置mapper xml文件的路径(扫描mapper文件下的xml)
mybatis-plus.mapper-locations=classpath:com/xx/xx/mapper/xml/*.xml
上一篇:Underscorify Substring


下一篇:redis第一篇