在整合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>
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>
相关文章推荐
- Java-正确使用equals和hashCode方法
- java poi excel
- Spring RMI调用远程方法
- SpringMVC 和 Struts2 框架区别
- Java HashMap工作原理及实现
- Spring 的@Component和@Autowired
- Spring中数据源的配置形式
- java中重载与重写的区别
- Spring的XML配置的bean调用注解方式的bean
- java 死记硬背真不行
- java 执行jar包引用别的jar包方式
- springmvc之数据验证
- java: Multiple encodings set for module chunk test "GBK" will be used by compiler
- 《JAVA与模式》之门面模式
- JAVA多态的汇总
- 深入理解Java:注解(Annotation)自定义注解入门
- eclipse开发erlang _安装,hello world
- 说说自己常用的jdk包?
- XML——写出XML文档(XSLT+StAX)
- java中的HashCode