Springle+EHCache 分布式缓存开发(四)
来源:互联网 发布:崔氏网络卡盟 编辑:程序博客网 时间:2024/06/10 15:18
2、 Spring AOP配置
<bean id="cacheManager"
class="com.china.LB.common.ehcache.NginEhCacheManagerFactoryBean">
<property name="configLocation" value="WEB-INF/ehcache.xml"></property>
</bean>
<bean id="serviceCacheBean"
class="org.springframework.cache.ehcache.EhCacheFactoryBean">
<property name="cacheManager" ref="cacheManager"></property>
<property name="cacheName" value="serviceCache"></property>
</bean>
<bean id="serviceCacheInterceptor"
class="com.china.LB.common.interceptor.MethodCacheInterceptor">
<property name="cache"><ref local="serviceCacheBean" /></property>
</bean>
<bean id="serviceCachePointCut"
class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
<property name="advice"><ref local="serviceCacheInterceptor" /></property>
<property name="patterns">
<list><value>com.china.LB.order.servicemg.service.impl.*.*</value></list>
</property>
</bean>
<bean id="cacheManager"
class="com.china.LB.common.ehcache.NginEhCacheManagerFactoryBean">
<property name="configLocation" value="WEB-INF/ehcache.xml"></property>
</bean>
<bean id="serviceCacheBean"
class="org.springframework.cache.ehcache.EhCacheFactoryBean">
<property name="cacheManager" ref="cacheManager"></property>
<property name="cacheName" value="serviceCache"></property>
</bean>
<bean id="serviceCacheInterceptor"
class="com.china.LB.common.interceptor.MethodCacheInterceptor">
<property name="cache"><ref local="serviceCacheBean" /></property>
</bean>
<bean id="serviceCachePointCut"
class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
<property name="advice"><ref local="serviceCacheInterceptor" /></property>
<property name="patterns">
<list><value>com.china.LB.order.servicemg.service.impl.*.*</value></list>
</property>
</bean>
- Springle+EHCache 分布式缓存开发(四)
- Springle+EHCache 分布式缓存开发(一)
- Springle+EHCache 分布式缓存开发(二)
- Springle+EHCache 分布式缓存开发(三)
- Springle+EHCache 分布式缓存开发(五)
- Springle+EHCache 分布式缓存开发(六)
- Ehcache学习(四)ehcache缓存共享
- EHCache入门系列(四)–分布式缓存集群环境配置
- EHCache入门系列(四)–分布式缓存集群环境配置
- EHCache入门系列(四)–分布式缓存集群环境配置
- Ehcache分布式缓存实例(集群环境)
- Ehcache 分布式缓存
- EHCACHE分布式缓存
- EhCache分布式缓存
- Ehcache分布式缓存
- EHCACHE分布式缓存
- Ehcache 分布式缓存 -springMVC
- Ehcache分布式缓存实现
- Android 开发中使用 SQLite 数据库
- Android屏幕禁止休眠和锁屏的方法
- SetNextControlName&GetNameOfFocusedControl
- C#存储过程
- 为Sunny定制Collusion Report Template之EXCEL技巧之二:SUMIF函数
- Springle+EHCache 分布式缓存开发(四)
- ArcGIS Engine开发教程之图层符号化(五)——利用ESRI自带的符号库进行唯一值符号化
- ubuntu安装wine遇到的错误以及解决办法
- stagefright框架(一)Video Playback的流程
- C++ 实现动态定义三维内的数组
- 十年编程无师自通 转载
- struct和char 的类型转换
- Springle+EHCache 分布式缓存开发(五)
- E-mail 验证