Spring 之 eclipse 提示: Failed to read schema documen“schema/beans/spring-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包。


版权声明:本文为u012585142原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。