there have been many articles on the Internet explaining the possible reasons for this error, nothing more than the following:
1. Java method does not exist in mapper.xml, and then the method of executing Mapper will report the
. The return value of xxxmapper.java method is List, while the select element does not correctly configure ResultMap, or only configure ResultType
4. If you confirm that there is no problem above, please modify the corresponding XML file, such as deleting a blank line, save. 5. See if the XML configuration path of mapper is correct
error 2 treatment.
maven default would make all configuration files under the SRC/main/resources and SRC/main/Java under all the Java files packaged or published to the target \ classes here, but the reality we may under the SRC/main/Java also placed some configuration files such as hibernate configuration file or mybatis mapper configuration files, etc., if you don’t do some additional configuration, after that our packaging projects may find these must be a resource file, So add a configuration like the following to the POM.xml so that the XML file under SRC /main/ Java is copied to the corresponding class directory along with the Java compiled class file.
<build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> </resources> </build>
- The icon on the layui page is not displayed, and an error message is reported: Failed to decode downloaded font …..
- How to Fix Spring Boot OTS parsing error: Failed to convert WOFF 2.0
- [Solved] org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.zyh.springboot.
- How to Fix The error may exist in com/kuang/dao/UserMapper.xml
- Mapped Statements collection does not contain value for XXXX
- Related configuration of mybatis project
- Spring boot can’t scan XML (invalid bound statement (not found))
- Differences between the assets directory in Android project and the purpose of resource
- After Java application is deployed in Linux environment, Chinese is displayed as square solution
- Solution to the problem of installing lxml in Pip
- Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:build Exception caught: basedir src/mai
- Record an error that the Tomcat resource publication cannot be updated:
- Howto Install and Configure VTK on Ubuntu
- Webpack 4 : ERROR in Entry module not found: Error: Can’t resolve ‘./src’
- OpenGL class library and environment configuration under win10 and vs2015
- Configure OpenGL development environment (vs2015)
- Failed to load ApplicationContext encountered when using mybatis plus
- Springboot error: property ‘sqlsessionfactory’ or ‘sqlsessiontemplate’ are required error details
- Error: Could not find or load main class ***
- Post build event after VC generation