1. First, look at mybatis-config.xml
Be sure to follow the student mapper above. The directory where XML is stored is right
2. Look at mapper.xml
Be sure to match the directory stored in the student mapper above
3. If there is Chinese in the comments, check whether UTF-8 in the two XML is changed to uft8
<?xml version="1.0" encoding="UTF8" ?>
4. Maven resource export problem
<build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> </resources> </build>
5. Check whether mapper and mapper.xml are in the same directory under the target directory, and then check whether there are any extra or duplicate. If so, delete those that do not correspond to the SRC directory above.
The directories of SRC, test and target should be consistent!!!
- Invalid bound statement (not found) of custom SQL in mybatisplus
- How to Fix Invalid bound statement (not found) Error
- Failure of spring boot configuration server port
- How to Fix Spring Boot OTS parsing error: Failed to convert WOFF 2.0
- The icon on the layui page is not displayed, and an error message is reported: Failed to decode downloaded font …..
- How to Fix The error may exist in com/kuang/dao/UserMapper.xml
- Related configuration of mybatis project
- [Solved] org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.zyh.springboot.
- Mapped Statements collection does not contain value for XXXX
- [solved] closingontransa ctionalSqlSessionorg.apache.ibatis . session.defaults.DefaultSqlSession @20] No information after that.
- Failed to load ApplicationContext encountered when using mybatis plus
- Solution to the problem of installing lxml in Pip
- Spring boot can’t scan XML (invalid bound statement (not found))
- How to Fix Error: JavaFX cannot find fxml
- When I first learned mybatis org.apache.ibatis . binding.BindingException report errors
- Springboot error: property ‘sqlsessionfactory’ or ‘sqlsessiontemplate’ are required error details
- Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:build Exception caught: basedir src/mai
- Mybatis property loading order [How to Solve]
- Post build event after VC generation
- Differences between the assets directory in Android project and the purpose of resource