From 2d079ac843ebcb335f2ef7d6952f9700a16fddde Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期三, 05 五月 2021 14:11:00 +0800
Subject: [PATCH] 游湖阿底阿妈
---
java110-core/src/main/java/com/java110/core/cache/CacheConfiguration.java | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/java110-core/src/main/java/com/java110/core/cache/CacheConfiguration.java b/java110-core/src/main/java/com/java110/core/cache/CacheConfiguration.java
old mode 100644
new mode 100755
index 4cc0953..c0f195f
--- a/java110-core/src/main/java/com/java110/core/cache/CacheConfiguration.java
+++ b/java110-core/src/main/java/com/java110/core/cache/CacheConfiguration.java
@@ -1,35 +1,31 @@
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;
/**
* Created by wuxw on 2017/7/23.
*/
-@Configurable
-@EnableCaching
+//@Configurable
+//@EnableCaching
public class CacheConfiguration {
/*
* ehcache 涓昏鐨勭鐞嗗櫒
*/
- @Bean(name = "appEhCacheCacheManager")
+ //@Bean(name = "appEhCacheCacheManager")
public EhCacheCacheManager ehCacheCacheManager(EhCacheManagerFactoryBean bean){
- return new EhCacheCacheManager (bean.getObject ());
+ return new EhCacheCacheManager (bean.getObject());
}
/*
* 鎹畇hared涓庡惁鐨勮缃�,Spring鍒嗗埆閫氳繃CacheManager.create()鎴杗ew CacheManager()鏂瑰紡鏉ュ垱寤轰竴涓猠hcache鍩哄湴.
*/
- @Bean
+ //@Bean
public EhCacheManagerFactoryBean ehCacheManagerFactoryBean(){
EhCacheManagerFactoryBean cacheManagerFactoryBean = new EhCacheManagerFactoryBean ();
cacheManagerFactoryBean.setConfigLocation (new ClassPathResource("cache/ehcache-app.xml"));
--
Gitblit v1.8.0