From b99fe101bd883b8561b1ec6055ea77b3bbceb079 Mon Sep 17 00:00:00 2001 From: "Jerry.Chen" Date: Tue, 8 Sep 2020 17:01:14 +0800 Subject: [PATCH] refactor: rename redis init method name --- .../cloud/cache/redis/RedisLockServiceAutoConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/myoss-starter-cache/src/main/java/app/myoss/cloud/cache/redis/RedisLockServiceAutoConfiguration.java b/myoss-starter-cache/src/main/java/app/myoss/cloud/cache/redis/RedisLockServiceAutoConfiguration.java index c782ba2..e4552e8 100644 --- a/myoss-starter-cache/src/main/java/app/myoss/cloud/cache/redis/RedisLockServiceAutoConfiguration.java +++ b/myoss-starter-cache/src/main/java/app/myoss/cloud/cache/redis/RedisLockServiceAutoConfiguration.java @@ -74,7 +74,7 @@ public RedisLockServiceImpl redisLockService(StringRedisTemplate redisTemplate) } @EventListener - public void setApplicationContext(ApplicationReadyEvent event) { + public void initRedisConnection(ApplicationReadyEvent event) { ConfigurableApplicationContext applicationContext = event.getApplicationContext(); Map stringRedisTemplateMap = applicationContext .getBeansOfType(StringRedisTemplate.class);