今天分模块的springboot 整合mybatis 遇到这个问题,
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) ,网上找了一下都是路径什么的配置错误,
最后发现是application-dev.yml配置文件中,
mybatis:
mapper-locations: classpath:mapper/*Mapper.xml
#type-aliases-package: cn.com.git.batch.dao
type-aliases-package: cn.com.git.batch.entity
mapper 这个是对应 resources 下的 mapper 文件下下面的所有的 Mapper.xml