异常信息

Exception encountered during context initialization - cancelling refresh attempt: 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
2019-06-12 19:27:15,237 ERROR [org.springframework.web.servlet.DispatcherServlet] - Context initialization failed
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

1.1.2异常场景
在部署ssm框架的时候,配置springmvc.xml的时候出现的错误

1.1.3异常分析过程
Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager';

1.1.4异常解决方案
在注册驱动的时候,选mvc的包要看准,mvc结尾就对了。
Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager';

相关文章:

  • 2021-08-14
  • 2021-12-07
  • 2022-12-23
  • 2021-09-27
  • 2021-06-03
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
猜你喜欢
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2021-10-28
  • 2022-12-23
  • 2021-10-22
相关资源
相似解决方案