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
Multiple annotations found at this line: - schema_reference.4
原文:https://www.cnblogs.com/ianhuafeng/p/12437356.html