问题:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 32 in XML document from class path resource [security-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.3: Element 'beans:beans' cannot have character [children], because the type's content type is element-only.
解决方法:
手动输入。复制粘贴时,可能粘贴进去乱码了
本文介绍了在Spring框架中遇到的一个具体问题:XML配置文件中出现的字符内容错误导致的XmlBeanDefinitionStoreException异常。该文详细解释了异常的原因,并提供了一个简单的解决方法。
5010





