springboot项目结构

springboot 多模块下mapper分散的解决方法

由于mapper.xml分布在不同的模块中,

mybatis.mapperLocations=classpath:mapper/*.xml 不能两个模块中mapper文件夹下的xml文件不能加载

这是因为classpath只加载了一个mapper的改成

mybatis.mapperLocations=classpath*:mapper/*.xml

解决问题

相关文章:

  • 2021-06-27
  • 2021-10-28
  • 2021-04-12
  • 2021-04-08
  • 2021-03-31
  • 2021-08-19
  • 2021-04-17
  • 2021-11-18
猜你喜欢
  • 2021-10-15
  • 2022-12-23
  • 2021-10-28
  • 2021-12-04
  • 2021-11-25
  • 2022-12-23
  • 2021-05-08
相关资源
相似解决方案