当前位置:网站首页>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 �
边栏推荐
猜你喜欢

Deepin20.6 rtx3080 installing graphics card drivers 510.60.02, cuda11.6, pytorch1.11

C operator

C main函数

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

TCP/IP 三次握手四次挥手(面试题)

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

Scala下载及IDEA安装Scala插件(保姆级教程超详细)

Array related content

How to set public IP access on the H3C gr5200 router

3D reconstruction system | L3 dual view motion recovery structure (SFM binocular SFM)
随机推荐
[spark][core] what is an external shuffle service?
Idea大全(转载)
New features of ES6
PTA:自测-2 素数对猜想 (20分)
Differences between microservice architecture and SOA Architecture
Assertion of selenium webdriver
How to set public IP access on the H3C gr5200 router
分布式并发重复提交问题
Swap numbers, XOR, operator correlation
[untitled]
Left aligned, right aligned, random number, goto, compare output bool
Module yaml error: Unexpected key in data: static_ context [line 9 col 3]
New关键字、引用&与指针的学习记录
Rust小技巧 - 通过FFI编程运行tensorrt模型
MySQL开发注意事项(阿里巴巴开发手册)
tc菜单分割
Introduction to resttemplate
[LDA] rough version notes of EM variational reasoning [to be improved
PTA:自测-3 数组元素循环右移问题 (20分)
Deepin20.6 rtx3080 installer le lecteur de carte graphique 510.60.02, cuda 11.6, pytorch1.11