mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	update 优化 去除无用继承
This commit is contained in:
		@@ -11,7 +11,6 @@ import org.redisson.spring.starter.RedissonAutoConfigurationCustomizer;
 | 
			
		||||
import org.springframework.beans.factory.annotation.Autowired;
 | 
			
		||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
 | 
			
		||||
import org.springframework.cache.CacheManager;
 | 
			
		||||
import org.springframework.cache.annotation.CachingConfigurerSupport;
 | 
			
		||||
import org.springframework.cache.annotation.EnableCaching;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
import org.springframework.context.annotation.Configuration;
 | 
			
		||||
@@ -25,7 +24,7 @@ import org.springframework.context.annotation.Configuration;
 | 
			
		||||
@Configuration
 | 
			
		||||
@EnableCaching
 | 
			
		||||
@EnableConfigurationProperties(RedissonProperties.class)
 | 
			
		||||
public class RedisConfig extends CachingConfigurerSupport {
 | 
			
		||||
public class RedisConfig {
 | 
			
		||||
 | 
			
		||||
    @Autowired
 | 
			
		||||
    private RedissonProperties redissonProperties;
 | 
			
		||||
@@ -76,7 +75,6 @@ public class RedisConfig extends CachingConfigurerSupport {
 | 
			
		||||
    /**
 | 
			
		||||
     * 自定义缓存管理器 整合spring-cache
 | 
			
		||||
     */
 | 
			
		||||
    @Override
 | 
			
		||||
    @Bean
 | 
			
		||||
    public CacheManager cacheManager() {
 | 
			
		||||
        return new PlusSpringCacheManager();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user