簡體   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