在搭建SSM项目时,在配置spring-mybatis.xml中的头<beans >中
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
报错Description Resource Path Location Type cvc-elt.1: Cannot find the declaration of element 'beans'.
,原本以为时网络不行,后来单独访问这个url是可以的,在去查看pom.xml文件,发现使用的Spring4.0..5,于是将
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
改成
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.5.xsd,就没有报错啦!