记录:
整合mybatis,调用mapper中的自定义接口报错org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
1:检查mybatis配置
mapper-locations: classpath*:/com/xxx/xml/*Mapper.xml
type-aliases-package: com.xxx.entity
2:有freemybatis tool插件,能自动映射,有箭头表示没问题
3:检查target目录下是否包含.xml文件,默认java目录下的xml,打包不会包含
<resource>
<directory>src/main/java</directory>
<includes>
<include>com.xxx.dao.**.*.xml</include>
</includes>
<filtering>true</filtering>
</resource>