繁体   English   中英

org.xml.sax.SAXParseException:schema_reference.4:无法读取架构文档“http://www.springframework.org/schema/beans/spring-beans.xsd”

[英]org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans.xsd'

尝试执行 spring 批处理时出现以下错误

2021-10-07T13:10:19,229 [main] WARN  XmlBeanDefinitionReader: Ignored XML validation warning
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203) ~[?:1.8.0_265]

我再次尝试运行它,它被执行了但是我想确保上述错误不会重复。

这是什么原因造成的? 我该如何永久解决这个问题。

网络问题,因为错误将 502 作为根本原因,这是一个错误的网关。 XSD 文件被添加到 spring 的 jars 中,所以它不应该需要去互联网上找到它

https://qnatech.wordpress.com/2012/08/21/how-to-resolve-spring-xsd-schema-error-schema_reference-4-failed-to-read-schema-document/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM