在Spring配置文件中加入了支持注解,即<mvc:annotation-driven/>

重新启动服务器包 org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'cacheManager' is defined错误

错误原因:命名空间选择的是xmlns:mvc="http://www.springframework.org/schema/cache"

解决方法:换一种命名空间,即xmlns:mvc="http://www.springframework.org/schema/tx"

重新启动成功了


 
                    
            
                

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
  • 2021-05-22
猜你喜欢
  • 2021-06-05
  • 2021-07-12
  • 2022-12-23
  • 2022-01-03
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案