在eclipse的windows->Preferences->Spring->Beans Support->Namespaces
在右方点击要添加的标签,最后在下面选中想要的版本
复制对应版本的url到配置文件中:
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/context/spring-mvc-3.2.xsd"