当前位置:网站首页>org. xml. sax. SAXParseException; lineNumber: 63; columnNumber: 10; The definition of "mapper" in the related type must be matched with "(CAC
org. xml. sax. SAXParseException; lineNumber: 63; columnNumber: 10; The definition of "mapper" in the related type must be matched with "(CAC
2022-06-12 15:17:00 【A_ M amu】
org.xml.sax.SAXParseException; lineNumber: 63; columnNumber: 10; Related types � "mapper" The definition of must be matched � "(cac
Don't panic when you encounter something , At Baidu !!! Talk about problems and analyze problems , Then there is the solution

Analyze the problem. The error report is related to us xml Related documents , The error I encountered is related to comments
And our notes usually have
Java The following three annotation methods are supported :
1、Java What are the types of comments —— Single-line comments
In double slashes “//” identification , Only one line can be annotated , It's used where there's little information to annotate . open Eclipse, stay Java Use single line comments in the code .
2、Java What are the types of comments —— Multiline comment
Included in “/*” and “*/” Between , Can annotate a lot of lines . For better readability , Generally, the first and last lines do not write comments ( It's also more beautiful ).
Be careful : Multiple line comments can nest single line comments , But you can't nest multiline comments and document comments .
3、Java What are the types of comments —— Documentation Comments
Included in “/**” and “*/” Between , You can also annotate multiple lines of content , It is generally used in class 、 Methods and variables , To describe its function . After comment , The mouse over the class and variable will automatically display the content of our comments .
Be careful : Document comments can nest single line comments , You cannot nest multiline comments and document comments , Generally, the first and last lines don't write comments .
The key is coming. and xml Comments cannot be used Only use
<!-- -->

If you change to other comments, they will appear
resultMap Red explosion


Caused by: org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\ desktop \ninthlc1\target\ninth-1.0-SNAPSHOT\WEB-INF\classes\mapper\GoodsDao.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 42; columnNumber: 15; Element type is "resultMap" The content of must match "(constructor?,id*,result*,association*,collection*,discriminator?)".
at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:613)
at org.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:491)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1853)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1790)
... 83 more
Caused by: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 42; columnNumber: 15; Element type is "resultMap" The content of must match "(constructor?,id*,result*,association*,collection*,discriminator?)".
at org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:263)
at org.apache.ibatis.parsing.XPathParser.<init>(XPathParser.java:127)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.<init>(XMLMapperBuilder.java:81)
at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:610)
... 86 more
Caused by: org.xml.sax.SAXParseException; lineNumber: 42; columnNumber: 15; Element type is "resultMap" The content of must match "(constructor?,id*,result*,association*,collection*,discriminator?)".
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:1994)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:879)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2967)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
at org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:261)
... 89 more
24-Dec-2021 13:32:26.310 Jujube ラ Ton [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Jujube � Jujube Or more listeners Name Turn it over, or more Information Viewing When the machine is fixed ュ File file
24-Dec-2021 13:32:26.312 Jujube ラ Ton [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Due to the previous request No, No Context[] Name Move the head and touch
[2021-12-24 01:32:26,369] Artifact ninth:war exploded: Error during artifact deployment. See server log for details.
24-Dec-2021 13:32:27.845 Qi ℃ Information [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory It's time to eb Application ㄧ List items � [D:\MySql\apache-tomcat-8.5.57\webapps\manager]
24-Dec-2021 13:32:27.945 Qi ℃ Information [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Web Application items How [D:\MySql\apache-tomcat-8.5.57\webapps\manager] The part of the network is inserted in ╗98] Jiao Inside �
边栏推荐
猜你喜欢

Wild pointer understanding
![[jvm learning] local method stack and heap](/img/5d/2e0b758ae52cfdc0d060431df19eea.jpg)
[jvm learning] local method stack and heap

Qiming cloud sharing | demonstrate the switch through an example of the matter protocol to control the light on and off through the matter protocol

IMU learning records

Acwing暑期每日一题(6月10日性感素数)

机器人前行、旋转的service编写

Deepin20.6 rtx3080 installer le lecteur de carte graphique 510.60.02, cuda 11.6, pytorch1.11

SOA Architecture

Dart typedef的理解

Microservice fault tolerance
随机推荐
[LDA] basic knowledge notes - mainly AE and VAE
Xshell 7 official website free download
Scala下载及IDEA安装Scala插件(保姆级教程超详细)
The difference and brief description of "file name" and < file name > import header file used in # include
Module yaml error: Unexpected key in data: static_ context [line 9 col 3]
FIRSTVT and LASTVT vernacular
[LDA] LDA theme model notes - mainly Dirichlet
New features of ES6
Qiming cloud sharing | demonstrate the switch through an example of the matter protocol to control the light on and off through the matter protocol
Notes on ARM 64 instructions
How to write year-end summary
Particle filter learning record
C 数据类型
vim的安装以及常用命令
Deepin20.6 rtx3080 installing graphics card drivers 510.60.02, cuda11.6, pytorch1.11
使用CSDN-markdown编辑器
C main function
Alibaba, Tencent and pinduoduo set an example, and the new logic of industrial Internet is gradually emerging
Summary of advantages and disadvantages of various architectures
odom坐标系的理解