Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-3.1.xsd'

来源:互联网 发布:黄思路韩寒 知乎 编辑:程序博客网 时间:2024/05/18 00:31

SSM框架测试时,有个一个问题。Junit进行单元是测试时提示如下报错:

“Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans.3.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not ”

在beans.xml里面的头配置

http://www.springframework.org/schema/beans/spring-beans.3.0.xsdhttp://www.springframework.org/schema/context/spring-context.3.0xsd"

改为

http://www.springframework.org/schema/beans/spring-beans.xsdhttp://www.springframework.org/schema/context/spring-context.xsd"




0 0
原创粉丝点击