spring无法读取方案文档的解决办法

来源:互联网 发布:家庭光纤网络布线 编辑:程序博客网 时间:2024/06/12 01:46

org.xml.sax.SAXParseException; lineNumber: 14; columnNumber: 59; schema_reference.4: 无法读取方案文档 'http://www.springframework.org/schema/beans/spring-beans-4.3.xsd', 原因为 1) 无法找到文档; 2) 无法读取文档; 3) 文档的根元素不是 <xsd:schema>。


这几天一直报错这个,然后tomcat无法启动,最后终于找到了问题所在。


我在applicationContext文件中,头文件用的是'http://www.springframework.org/schema/beans/spring-beans-4.3.xsd,但是我的spring jar用的是3.2版本的。只要把spring-beans-4.3.xsd改成3.2的就ok了,太坑了。。。

1 0
原创粉丝点击