由于spring-mvc.xml配置文件中由于IDEA自动配置啦cache,但配置文件中又没有指定缓存的空间,但是JVM虚拟机中也有个cacheManage,这就导致spring进行bean管理时扫描到cache Manage
将上面的配置文件改成如下的就可以:
<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/mvc/spring-mvc.xsd">