Shiro与EHCache冲突问题
来源:互联网 发布:淘宝开店实名认证步骤 编辑:程序博客网 时间:2024/05/16 11:06
- 在已存在Shiro的工程中,引入EHCache,报VM中已经存在同名cache的异常
- 需要修改Spring的配置文件(Spirng4.0)
- beans标签中加入:
xmlns:cache= "http://www.springframework.org/schema/cache"
- beans标签中的xsi:schemaLocation中加入:
http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd
- Shiro的sencurityManager中加入:
<property name="cacheManager" ref="shiroCacheManager"/>
- 引入EHCache注解驱动:
<cache:annotation-driven cache-manager ="ehcacheCacheManager" />
- 配置EHCache总线
<bean id = "ehCacheManager" class= "org.springframework.cache.ehcache.EhCacheManagerFactoryBean" > <property name = "configLocation" value= "classpath:ehcache.xml" /></bean>
- 为Shiro和系统分别配置缓存对象
<bean id = "ehcacheCacheManager" class= "org.springframework.cache.ehcache.EhCacheCacheManager"> <property name="cacheManager" ref="ehCacheManager"/> </bean> <bean id="shiroCacheManager" class="org.apache.shiro.cache.ehcache.EhCacheManager"> <property name="cacheManager" ref="ehCacheManager"/></bean>
0 0
- Shiro与EHCache冲突问题
- EhCache WebCache 与 SpringMVC集成时 CacheManager冲突的问题
- EhCache WebCache 与 SpringMVC集成时 CacheManager冲突的问题
- shiro ehcache
- shiro ehcache
- spring boot集成shiro与缓存ehcache
- shiro-ehcache在持续集成无法发布问题
- shiro和ehcache结合时遇到的问题
- Apache Shiro 集成-Ehcache
- shiro ehcache配置
- Shiro EHCache缓存配置
- shiro-session-ehcache配置
- Shiro缓存整合EhCache
- shiro整合ehcache
- shiro.ehcache.xml配置参数
- Shiro + EHCache 缓存的使用
- Spring mvc+shiro+ehcache整合
- SpringBoot集成shiro和ehcache
- c枚举类型
- android设计模式
- 定时器
- struts2拦截器的实现原理及源码剖析
- Oracle round()函数与trunc()函数区别介绍
- Shiro与EHCache冲突问题
- Makefile学习笔记
- 输入一个字符,字母输出‘c’,数字输出本身,回车结束(8086汇编)
- android 延迟3秒执行
- ios学习之一(纯代码搭建主流app框架---tabbar+navgationbar)
- Delphi的编译指令
- JS操作JSON总结
- java 唯一生成码
- 有效使用Google的20条建议