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
则引用成功。