IDEA解决xml映射异常: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
先看看 编译后有没xml
按以下步骤一一执行:
1:检查xml文件所在的package名称是否和interface对应的package名称一一对应
2:检查xml文件的namespace是否和xml文件的package名称一一对应
3:检查函数名称能否对应上
4:去掉xml文件中的中文注释
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
</build>
以上没有作用 下面配置
https://www.cnblogs.com/jstarseven/p/5803697.html
<property name="mapperLocations" value="classpath*:com/**/**/dao/*Mapper.xml"></property>