關於:Multiple annotations found at this line: ---springmvc項目中的pom.xml及其他的xml配置文件報錯的解決辦法

文章屬於轉載文章:如侵權請聯繫本人:無意冒犯

附上該博主博客::來源:CSDN 
原文:https://blog.csdn.net/u014403008/article/details/52784881 

博主大名::K__Z

愛慕虛榮的熊大

自我簡介L:     一個自我感覺能開創一個傳說的自傲大僧

本博主博客::::對你有幫助的話麻煩關注支持下哈:::嘻嘻

https://blog.csdn.net/qq_38254897

 

關於:Multiple annotations found at this line: ---springmvc項目中的pom.xml及其他的xml配置文件報錯的解決辦法

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

如上,在使用eclipse構建基於maven的springmvc 工程時,報上面的錯誤

如下爲spring的配置:

  

以上的原因是因爲我在maven pom.xml 中依賴的spring的版本和配置不匹配導致的。

我在pom.xml中使用的是

<spring.version>4.0.9.RELEASE</spring.version> 

使用的是 4.0 版本的,但是上面是3.1版本的

把上面截圖中的spring配置改爲4.0 ,同時做一次clean操作,問題解決   下方有本人原創的clean解釋與使用方法哦:::::最下方:

 

以下教大家如何使用Clean 的功能

CSDN:博主文章裏有哈:    麻煩麻煩就關注以下哈

博主大名::K__Z

愛慕虛榮的熊大

自我簡介L:     一個自我感覺能開創一個傳說的自傲大僧

本博主博客::::對你有幫助的話麻煩關注支持下哈:::嘻嘻

https://blog.csdn.net/qq_38254897

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章