org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 15 in XML document from file [F:\NetStone-Aggregation\StoneWebService\target\ROOT\WEB-INF\classes\applicationContext-cache.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 15; columnNumber: 11; cvc-complex-type.2.3: 元素 'list' 必须不含字符 [子级], 因为该类型的内容类型为“仅元素”。
maven compile才编译配置文件,直接启动tomcat只编译class文件,所以先compile再启动tomcat,配置文件就编译好了。

本文介绍了如何解决Spring框架中因缓存配置错误导致的XmlBeanDefinitionStoreException异常。问题出现在applicationContext-cache.xml文件的第15行,涉及到'list'元素的不当使用。文章进一步解释了Maven编译过程对于配置文件的重要性,并提供了正确的处理步骤。

被折叠的 条评论
为什么被折叠?



