The at org. Springframework. Beans. Factory. XML. XmlBeanDefinitionReader. DoLoadBeanDefinitions (XmlBeanDefinitionReader. Java: 405)
The at org. Springframework. Beans. Factory. XML. XmlBeanDefinitionReader. LoadBeanDefinitions (XmlBeanDefinitionReader. Java: 337)
The at org. Springframework. Beans. Factory. XML. XmlBeanDefinitionReader. LoadBeanDefinitions (XmlBeanDefinitionReader. Java: 305)
The at org. Springframework. Beans. Factory. Support. AbstractBeanDefinitionReader. LoadBeanDefinitions (AbstractBeanDefinitionReader. Java: 188)
The at org. Springframework. Beans. Factory. Support. AbstractBeanDefinitionReader. LoadBeanDefinitions (AbstractBeanDefinitionReader. Java: 224)
The at org. Springframework. Beans. Factory. Support. AbstractBeanDefinitionReader. LoadBeanDefinitions (AbstractBeanDefinitionReader. Java: 195)
The at org. Springframework. Beans. Factory. Support. AbstractBeanDefinitionReader. LoadBeanDefinitions (AbstractBeanDefinitionReader. Java: 257)
The at org. Springframework. Context. Support. AbstractXmlApplicationContext. LoadBeanDefinitions (AbstractXmlApplicationContext. Java: 128)
The at org. Springframework. Context. Support. AbstractXmlApplicationContext. LoadBeanDefinitions (AbstractXmlApplicationContext. Java: 94)
The at org. Springframework. Context. Support. AbstractRefreshableApplicationContext. RefreshBeanFactory (AbstractRefreshableApplicationContext. Java: 133)
The at org. Springframework. Context. Support. AbstractApplicationContext. ObtainFreshBeanFactory (AbstractApplicationContext. Java: 637)
The at org. Springframework. Context. Support. AbstractApplicationContext. Refresh (AbstractApplicationContext. Java: 522)
The at org. Springframework. Context. Support. ClassPathXmlApplicationContext. & lt; init> (ClassPathXmlApplicationContext. Java: 144)
The at org. Springframework. Context. Support. ClassPathXmlApplicationContext. & lt; init> (ClassPathXmlApplicationContext. Java: 85)
At com. Jh. Test. Test01. The main (15) Test01. Java:
Under Caused by: org. XML. Sax. SAXParseException; LineNumber: 16; ColumnNumber: 12; The XML document structure must be contained within the same entity from beginning to end,
The at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException (Unknown Source)
The at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError (Unknown Source)
The at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError (Unknown Source)
The at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError (Unknown Source)
The at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError (Unknown Source)
The at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.endEntity (Unknown Source)
The at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.endEntity (Unknown Source)
The at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.endEntity (Unknown Source)
The at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load (Unknown Source)
The at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.peekChar (Unknown Source)
The at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next (Unknown Source)
The at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next (Unknown Source)
The at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next (Unknown Source)
The at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument (Unknown Source)
The at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (Unknown Source)
The at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (Unknown Source)
The at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (Unknown Source)
The at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse (Unknown Source)
The at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse (Unknown Source)
The at org. Springframework. Beans. Factory. XML. DefaultDocumentLoader. LoadDocument (DefaultDocumentLoader. Java: 77)
The at org. Springframework. Beans. Factory. XML. XmlBeanDefinitionReader. DoLoadDocument (XmlBeanDefinitionReader. Java: 435)
The at org. Springframework. Beans. Factory. XML. XmlBeanDefinitionReader. DoLoadBeanDefinitions (XmlBeanDefinitionReader. Java: 393)
. 14 more
CodePudding user response:
The Exception in the thread "main" org. Springframework. Beans. Factory. XML. XmlBeanDefinitionStoreException: Line 16 in the XML document from the class path resource [the applicationcontext.xml] is invalid; Nested exception is org. XML. Sax. SAXParseException; LineNumber: 16; ColumnNumber: 12; The XML document structure must be contained within the same entity from beginning to end,The applicationcontext.xml org. Springframework. Beans. Factory. XML. XmlBeanDefinitionStoreException there is a problem, check carefully