使用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包。