From 611a816801c58abcc81d511a7dfc368f8d8fb24e Mon Sep 17 00:00:00 2001 From: zhangchao <zc857179121@qq.com> Date: 星期五, 22 十一月 2024 14:16:59 +0800 Subject: [PATCH] 修改定时任务触发方式,不是以固定时间执行,以执行完成任务,间隔多少时间在此执行 --- src/main/java/com/zy/common/config/RedisConfig.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/common/config/RedisConfig.java b/src/main/java/com/zy/common/config/RedisConfig.java index d356517..cf99252 100644 --- a/src/main/java/com/zy/common/config/RedisConfig.java +++ b/src/main/java/com/zy/common/config/RedisConfig.java @@ -5,6 +5,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import org.springframework.cache.annotation.CachingConfigurerSupport; import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.connection.RedisConnectionFactory; import org.springframework.data.redis.core.*; import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer; @@ -14,7 +15,7 @@ * Redis閰嶇疆绫� * Created by vincent on 2019-12-23 */ -//@Configuration +@Configuration //@EnableCaching // 寮�鍚暟鎹紦瀛樻満鍒� public class RedisConfig extends CachingConfigurerSupport { -- Gitblit v1.9.1