解决方法如下:
更改头文件为下面的就好啦:
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/cache/spring-mvc-3.2.xsd">
本文介绍了一种解决 Spring MVC 配置问题的方法,通过调整配置文件的命名空间及模式位置来确保 Spring MVC 正确加载配置。

被折叠的 条评论
为什么被折叠?



