解決上一篇bean.xml中 標簽報錯“ Error while downloading 'http://www.springframework.org/schema/beans/spring-beans.xsd........”


在xml文件中,頭部報錯如題

一開始查詢,說是頭部少了“<?xml version="1.0" encoding="UTF-8"?>”,但是我並沒有這個問題,可能有人會遇到。

而且這個錯並不影響項目的運行,當然也有可能是我沒注意到或者沒有寫到相關引用的代碼。

現在才知道,原來是因為工具較新,可能缺少標簽,加上<xml-body>標簽就行了

這樣就好了

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-4.3.xsd). 無法讀取方案文檔 'http://www.springframework.org/schema/beans/spring-beans-4.1.xsd'問題解決 Failed to read schema document 'http://www.springframework.org/schema/mvc/spring-mvc.xsd' springmvc報錯 發現了以元素 'mvc:exclude-mapping' 開頭的無效內容。應以 '{"http://www.springframework.org/schema/mvc":mapping, "http://www.springframework.org/schema/beans":bean}' 之一開頭。 Unable to locate Spring NamespaceHandler for XML schema namespace[http://www.springframework.org/schema/security] 項目從spring3升級到spring4 報Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security] Offending resource: class path resource [securityConfig.xml] Spring Boot中啟動Tomcat報錯Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name 'servletEndpointRegistrar' defined in Spring AOP 報錯org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'XXXXXX' defined in class path resource.......... Error while downloading 'http://java.sun.com/xml/ns/javaee/javaee_web_services_client_1_2.xsd' 錯誤/異常:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/beans_common.xml]...的解決方法
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM