随笔分类 - SpringBoot
摘要:项目结构 App.jar ├─j1.jar ├─j2.jar └─j3.jar 问题:在SpringBoot 只能扫描到App.jar下的mapper 扫描不到依赖 j1.jar 等的mapper 解决方法: 在appliacation.yml中 mybatis: mapper-locations:
阅读全文
摘要:mybatis: mapper-locations: classpath:mapper/*.xml // mapper文件位置 type-aliases-package: com.xxx.model // 根据别名查找model位置 check-config-location: true // 运行
阅读全文

浙公网安备 33010602011771号