Error reason: mapper file does not match
Check whether the mapper file is written incorrectly
Check the import configuration of mapper. Note that mapper cannot be imported across packages
Check whether the corresponding mapper file is generated in target/classes. If not, the solution is as follows
Add the following configuration to pom.xml, clean and recompile
</build>
<resources>
<resource>
<directory>src/main/java</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.*</include>
</includes>
</resource>
</resources>
</build>
Similar Posts:
- [Solved] Springboot Error: invalid bound statement (not found)
- [Solved] Mybatis Error: Invalid bound statement (not found)
- [Solved] Springboot Project mybatis Error: Invalid bound statement (not found)
- [Solved] Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.
- MyBatis Error: Error building SqlSession [How to Solve]
- [Solved] Could not find resource com/cth/dao/UserImpl.xml & Single mapping file not found
- [Solved] Browser Error: Failed to decode downloaded font and OTS parsing error: Failed to convert *** font to ***
- [Solved] Mybatis: the binding mapper cannot be found Error: Org.apache.ibatis.binding.bindingexception: invalid bound statement (not found)
- The project is normal in eclipse, and an error is reported in IDEA [How to Solve]
- YUI Compressor Maven: Compressing and obfuscating JavaScript and CSS files