Hello, everyone I am working on inserting data into mysql using mybatis as a spring. I'm asking because I don't understand what error means in the console window when I run it. I searched on the Internet and there was not much information, so if you know, please help me ㅠ<
February 09, 2018 11:44:03 AM org.apache.catalina.core.StandardContextlistenerStart Severity: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource [/WEB-INF/spring/root-context.xml]: Invocation of init method failed; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 16; element type "configuration" must be declared.
Caused by: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 16; element type "configuration" must be declared.
Caused by: org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 16; element type "configuration" must be declared.
Is there a problem with the xml file? Or I want to know if there is a problem with the beans that I declared in the root-context. ㅠ<
spring console mybatis
In the sqlSessionFactory bin, verify that the <configuration>
tag is correct in the mybatic config file set to the configLocation property.
© 2024 OneMinuteCode. All rights reserved.