Multiple annotations found at this line: - schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/ spring-beans-3.1.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'. 

 

今天在写一些简单的SpringMVC的代码的时候,spring的bean configuration XML突然报错,按照提示,没有beans标签,可是我的beans标签存在,

仔细分析原因之后,发现原因可能只是工程错乱了,

解决办法:停下当前的server,清理(clean)一下工程,重启就没事了;

 

此处分享一下另外一个遇到同样问题的大兄弟的博客。不过他的问题和我不一样,只是问题的表现形式一样

链接:https://blog.csdn.net/u014403008/article/details/52784881

相关文章:

  • 2021-05-10
  • 2021-07-07
  • 2022-12-23
  • 2021-06-23
  • 2021-05-15
  • 2021-05-06
  • 2021-09-10
  • 2022-12-23
猜你喜欢
  • 2021-08-17
  • 2021-11-24
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2021-04-23
相关资源
相似解决方案