Created
January 17, 2016 05:50
-
-
Save codinko/6d52fa8db9261672a64b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:cache="http://www.springframework.org/schema/cache" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xsi:schemaLocation=" | |
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd | |
http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd | |
http://www.springframework.org/schema/context | |
http://www.springframework.org/schema/context/spring-context-3.0.xsd"> | |
<cache:annotation-driven /> | |
<context:component-scan base-package="com.codinko.caching" /> | |
<bean id="cacheManager" | |
class="org.springframework.cache.ehcache.EhCacheCacheManager"> | |
<property name="cacheManager" ref="ehcache" /> | |
</bean> | |
<bean id="ehcache" | |
class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"> | |
<property name="configLocation" value="classpath:ehcache.xml" /> | |
</bean> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment