org.springframework.beans.factory.NoSuchBeanDefinitionException的解决

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.
org.springframework.beans.factory.NoSuchBeanDefinitionException的解决_第1张图片

org.springframework.beans.factory.NoSuchBeanDefinitionException的解决_第2张图片

NoSuchBeanDefinitionException: No bean named ‘cacheManager’ available
在运行最后浏览器报错:500 具体:HTTP Status 500 - Servlet.init() for servlet dispatcher threw exception


通过网上查找的解决方法都没有解决!
最后通过发现修改:web.xml文件,修改成为

"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">
 

你可能感兴趣的:(org.springframework.beans.factory.NoSuchBeanDefinitionException的解决)