SpringMVC约束引发的惨案 No bean named ‘cacheManager‘ available

惨案:org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.cache.interceptor.CacheInterceptor#0’: Cannot resolve reference to bean ‘cacheManager’ while setting bean property ‘cacheManager’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘cacheManager’ available

SpringMVC约束引发的惨案 No bean named ‘cacheManager‘ available_第1张图片

问题所在:Springmvc的约束

SpringMVC约束引发的惨案 No bean named ‘cacheManager‘ available_第2张图片

解决方案:把其中的cache 改为mvc即可

你可能感兴趣的:(项目搭建问题,bug)