欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

cvc-elt.1: Cannot find the declaration of element 'beans'Failed to read schema document 'http://www.springframework.org/schema/beans/sprin

程序员文章站 2022-04-16 10:24:42
打开包的 -- 吧xsd文件改为: 其他的也类似 ......
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>.

 


 

打开包的

cvc-elt.1: Cannot find the declaration of element 'beans'Failed to read schema document 'http://www.springframework.org/schema/beans/sprin--

cvc-elt.1: Cannot find the declaration of element 'beans'Failed to read schema document 'http://www.springframework.org/schema/beans/sprin

 

 

吧xsd文件改为:

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

其他的也类似