org.apache.ibatis.binding.BindingException原因总结(找不到映射文件)
作者:互联网
1.检查是否同包且同名
2.检查napper.xml的namespace和接口的地址是否一致
3.接口方法名是否一样
4.如果是maven项目检查pom.xml的<build></build>例是否有
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
标签:xml,src,检查,是否,binding,接口,ibatis,BindingException,main 来源: https://www.cnblogs.com/HQ0422/p/10862118.html