您的位置:首页 > 编程语言 > Java开发

在整合springmvc+mybatis+ecache时候报错如下: Another unnamed CacheManager already exists in the same VM.

2016-01-27 14:09 615 查看
在整合springmvc+mybatis+ecache时候报错如下: 
Error creating bean with name ‘ehCacheManager’ defined in class path resource [spring/spring-shiro-web.xml]: Invocation of init method failed; nested exception
is net.sf.ehcache.CacheException: Another unnamed CacheManager already exists in the same VM. Please provide unique names for each CacheManager in the config or do one of following: 

<bean id="ehCacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" >  
     
<property name="configLocation" value="classpath:ehcache.xml"></property>  
     
<property name="shared" value="true"></property>  重点
      </bean>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: