Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘cacheMana
Posted 闲言博客
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘cacheMana相关的知识,希望对你有一定的参考价值。
1.错误产生环境
使用SpringMVC时产生
2.错误描述
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'cacheManager' available
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:687)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1207)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
... 39 more
3.错误原因
在springmvc配置文件中引入了的约束问题,引入命名空间namespace的时候,会自动引入cache
4.解决办法
将约束中含有catch替换为mvc
成功运行
以上是关于Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘cacheMana的主要内容,如果未能解决你的问题,请参考以下文章
Mathematical Problems Caused by CCD
Caused by: java.lang.NoClassDefFoundError:
异常Caused by: java.lang.ClassNotFoundException: org.springframework.dao.DataIntegrityViolationExcep