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);