cvc-elt.1: Cannot find the declaration of element 'beans'Failed to read schema document '

Posted tk55

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cvc-elt.1: Cannot find the declaration of element 'beans'Failed to read schema document '相关的知识,希望对你有一定的参考价值。

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-3.0.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>.

 


 

打开包的

技术分享图片--

技术分享图片

 

 

吧xsd文件改为:

classpath:/org/springframework/beans/factory/xml/spring-beans-3.0.xsd

其他的也类似

 

以上是关于cvc-elt.1: Cannot find the declaration of element 'beans'Failed to read schema document '的主要内容,如果未能解决你的问题,请参考以下文章