| | |
| | | package com.java110.core.cache; |
| | | |
| | | import com.java110.core.factory.AppFactory; |
| | | import org.springframework.beans.BeansException; |
| | | import org.springframework.beans.factory.annotation.Configurable; |
| | | import org.springframework.cache.annotation.EnableCaching; |
| | | import org.springframework.cache.ehcache.EhCacheCacheManager; |
| | | import org.springframework.cache.ehcache.EhCacheManagerFactoryBean; |
| | | import org.springframework.context.ApplicationContext; |
| | | import org.springframework.context.ApplicationContextAware; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.core.io.ClassPathResource; |
| | | |
| | |
| | | */ |
| | | @Bean(name = "appEhCacheCacheManager") |
| | | public EhCacheCacheManager ehCacheCacheManager(EhCacheManagerFactoryBean bean){ |
| | | return new EhCacheCacheManager (bean.getObject ()); |
| | | return new EhCacheCacheManager (bean.getObject()); |
| | | } |
| | | |
| | | /* |