无法读取方案文档原因为 1) 无法找到文档; 2) 无法读取文档; 3) 文档的根元素不是 <xsd:schema>。

发布时间 2023-10-21 22:02:48作者: 偷咬月亮

org.springframework.util.xml.SimpleSaxErrorHandler.warning Ignored XML validation warning
org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 73; schema_reference.4: 无法读取方案文档 'http://www.springframework.org/schema/beans/spring-context.xsd', 原因为 1) 无法找到文档; 2) 无法读取文档; 3) 文档的根元素不是 xsd:schema

错误原因:命名空间 http://www.springframework.org/schema/beans/spring-context.xsd 书写错误

解决方法:正确书写命名空间 http://www.springframework.org/schema/context/spring-context.xsd