springboot多模块项目,引用子项目的mapper中的xml文件

springboot多模块项目,引用子项目的mapper中的xml文件,一直引用不到,

提示:

Caused by: org.apache.ibatis.binding.BindingException: 
Invalid bound statement (not found): utopia.account.dao.MenuDao.getMenuList

我的配置文件是:

mybatis:
  mapper-locations: classpath:mapper/*.xml

只需要改成:

mybatis:
  mapper-locations: classpath*:mapper/*.xml

则引用成功。

参考:https://ask.csdn.net/questions/699273

猜你喜欢

转载自blog.csdn.net/u014209205/article/details/83589762