1. 程式人生 > >springboot多模組專案,引用子專案的mapper中的xml檔案

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