Spring的applicationContext.xml提示異常

異常信息

Referenced file contains errors (http://www.springframework.org/schema/context/spring-context.xsd).  For more information, right click on the message in the Problems View and select "Show Details..."

提示錯誤的原因:緩存問題。

用的eclipse寫的,文件直接從別的項目複製的,別的沒有問題,複製過去出錯了。

解決辦法

  • Eclipse==>Preferences==>General==>Network Connections==Cache==>RemoveAll==>Apply and Close
  • 右擊項目==>Validate

然後就ok了。希望對你有幫助!

 

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