解决上一篇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