解決eclipse spring配置報錯:cvc-elt.1: Cannot find the declaration of element 'beans'.
Referenced file contains errors (http://www.springframework.org/schema/aop/spring-aop-3.1.xsd).
原因是無法從網絡上讀取到相應的schema文件,但實際上在瀏覽器中是可以訪問的。
卻一直在eclipse中顯示紅叉,當然,並不影響編譯打包。
查看所依賴的jar包文件中是否真的存在相應的schema文件。
如果maven依賴的jar包已經存在相應schema文件,直接改為本地classpath依賴路徑即可。
配置為本地classpath依賴路徑之后,eclipse中的紅叉報錯提示消失。