随笔分类 -  SpringBoot

摘要:项目结构 App.jar ├─j1.jar ├─j2.jar └─j3.jar 问题:在SpringBoot 只能扫描到App.jar下的mapper 扫描不到依赖 j1.jar 等的mapper 解决方法: 在appliacation.yml中 mybatis: mapper-locations: 阅读全文
posted @ 2019-12-07 17:59 江渡一苇 阅读(2065) 评论(0) 推荐(0)
摘要:mybatis: mapper-locations: classpath:mapper/*.xml // mapper文件位置 type-aliases-package: com.xxx.model // 根据别名查找model位置 check-config-location: true // 运行 阅读全文
posted @ 2019-12-07 17:31 江渡一苇 阅读(162) 评论(0) 推荐(0)