[Solved] Error parsing Mapper XML
Error parsing mapper xml
this error message is essentially a mapper XML error
failed resolve xxx XML, etc.
here we analyze some problems that will not become popular when writing, and that will cause errors when starting
1. ID conflict
The conflicts here are
resultmap
<resultMap type="com.newtouch.business.module.dto.T01agentComDTO" id="t01agentComMap">
<resultMap type="com.cpi.newtouch.business.module.dto.T01comDTO" id="t01agentComMap">
Specific SQL
<select id="findBy" >
<update id="findBy">
As long as two or more IDs are the same, an error will be reported. This usually happens because you don’t pay attention to copy and paste. You need to be careful!
2. Return type error
<resultMap type="com.newtouch.business.module.dto.T01agentComDTO" id="t01agentComMap">
<select id="findBy" resultType="t01agentComMap">
Like here, I returned the resultmap, but wrote the resulttype
Similarly, for example, if I return a string type, but I write a resultmap, I will also report an error
3. Not writing the full class name
<resultMap type="com.newtouch.business.module.dto.T01agentComDTO" id="t01agentComMap">
The resultmap, if I write it like this
<resultMap type="T01agentComDTO" id="t01agentComMap">
An error will be reported. Of course, if relevant settings are configured
Read More:
- [Solved] Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException
- [Solved] Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration
- [Solved] ElasticsearchStatusException[Elasticsearch exception [type=mapper_parsing_exception, reason=failed t
- [Solved] Mybatis add dependencies Error: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration.
- Eclipse: How to Close XML validation (xml file Error)
- Java parsing xml file encounters special symbols & will be abnormal solutions
- Mapper.xml Error: Error setting non null for parameter #3 with JdbcType null.
- [Solved] Spring set xml Component Scanning error: Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException…
- How to Solve JUnit Debugging initializationerror ERROR
- The error occurred while processing mapper_resultMap [How to Solve]
- How to Solve idea com.baomidou Error
- How to Solve Swagger error: IllegalStateException
- How to Solve mybatis-plus Paging Plug-in PaginationInnerInterceptor error
- How to Solve Image Upload Error: Uncaught (in promise) DOMException: Failed to execute ‘put‘ on ‘IDBObjectStore‘
- How to Solve Nosuchmethoderror Error
- How to Solve Tomcat Error: Could not resolve view with name ‘xxx/xxxxxxx‘ in servlet with
- How to Solve IDEA @Autowired Error
- How to Solve Flick operate Error: not serialized
- Mac: How to Solve ERROR launching ‘JD-GUI‘
- How to Solve Error occurred during initialization of boot layer