From 105d4f232402b84667db166cfc418712538733d0 Mon Sep 17 00:00:00 2001 From: hyxklee Date: Tue, 7 Jan 2025 18:23:48 +0900 Subject: [PATCH] =?UTF-8?q?HOTFIX:=20=EB=A0=88=EB=94=94=EC=8A=A4=20?= =?UTF-8?q?=ED=99=98=EA=B2=BD=EB=B3=80=EC=88=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/gachtaxi/global/config/RedisConfig.java | 6 +++--- src/main/resources/application-dev.yml | 9 ++++----- src/main/resources/application-local.yml | 9 ++++----- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/gachtaxi/global/config/RedisConfig.java b/src/main/java/com/gachtaxi/global/config/RedisConfig.java index c7692cd..bced1c5 100644 --- a/src/main/java/com/gachtaxi/global/config/RedisConfig.java +++ b/src/main/java/com/gachtaxi/global/config/RedisConfig.java @@ -23,13 +23,13 @@ public class RedisConfig { public static final String WILD_CARD = "*"; - @Value("${redis.host}") + @Value("${redis.host:localhost}") private String host; - @Value("${redis.port}") + @Value("${redis.port:6379}") private int port; - @Value("${redis.password}") + @Value("${redis.password:}") private String password; @Value("${chat.topic}") diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 7427595..4e1f926 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -12,14 +12,13 @@ spring: hibernate: ddl-auto: update data: + redis: + host: ${REDIS_HOST} + port: ${REDIS_PORT} + password: ${REDIS_PASSWORD} mongodb: uri: ${MONGODB_URI} -redis: - host: ${REDIS_HOST} - port: ${REDIS_PORT} - password: ${REDIS_PASSWORD} - logging: level: org.springframework.messaging: debug diff --git a/src/main/resources/application-local.yml b/src/main/resources/application-local.yml index d8cc3f6..195b403 100644 --- a/src/main/resources/application-local.yml +++ b/src/main/resources/application-local.yml @@ -12,14 +12,13 @@ spring: hibernate: ddl-auto: update data: + redis: + host: ${REDIS_HOST} + port: ${REDIS_PORT} + password: ${REDIS_PASSWORD} mongodb: uri: ${MONGODB_URI} -redis: - host: ${REDIS_HOST} - port: ${REDIS_PORT} - password: ${REDIS_PASSWORD} - logging: level: org.springframework.messaging: debug