mapper.xml文件不在resources中,扫描不到文件问题。
报错:Invalid bound statement (not found):
原因: mapper.xml文件不在resources中,导致IDEA扫描不 到.xml文件
// 绑定语句无效
报错:Invalid bound statement (not found): com.information.platform.dao.ColumnMapper.selectAll
在pom.xml中导入扫描位置路径。
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<build>