源码在这里
spring 配置:
<bean id="defaultEnCacheManager" class="com.vgerbot.cache.ehcache.VgerbotEhCacheManagerFactoryBean">
<property name="configLocation" value="classpath:ehcache.xml"></property>
<!-- 加载maven module的cache/*.xml缓存配置,最终和上面的ehcache.xml合并成一个文件 -->
<property name="extensionConfigLocation" value="classpath*:cache/*.xml"/>
<property name="shared" value="true"></property>
</bean>
<bean id="defaultCacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager">
<property name="cacheManager" ref="defaultEnCacheManager"/>
</bean>