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 .


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


修改如下:

在本地文件中:

Spring 之 eclipse 提示: Failed to read schema documen“schema/beans/spring-beans.xsd”_第1张图片

然后修改:

Spring 之 eclipse 提示: Failed to read schema documen“schema/beans/spring-beans.xsd”_第2张图片

就可以了。。。

我这里使用的是4.3的版本jar包。

你可能感兴趣的:(Spring)