[转]Spring 之 eclipse 提示: Failed to read schema documen“schema/beans/spring-beans.xsd”

该文章适用于形如 Failed to read schema documen“schema/beans/…….xsd”的错误

--------------------------------------------

使用eclipse自动生成spring xml时,提示:

Multiple annotations found at this line:
- cvc-elt.1: Cannot find the declaration of element 'beans'.
- 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>.


原因在于:找不到schema/beans/spring-beans.xsd


修改如下:

在本地文件中:


然后修改:


就可以了。。。

我这里使用的是4.3的版本jar包。
---------------------
作者:天半子
来源:CSDN
原文:https://blog.csdn.net/u012585142/article/details/70550662
版权声明:本文为博主原创文章,转载请附上博文链接!

posted @ 2019-02-13 18:39  轻红  阅读(134)  评论(0编辑  收藏  举报