From 4cc8de3f87e64485842e57e1fc8feaf2298e50c8 Mon Sep 17 00:00:00 2001 From: seokhee Date: Sun, 3 Nov 2024 14:08:25 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[#492]=20fix:=20swaggerConfig=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/jeju/nanaland/global/config/SwaggerConfig.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/com/jeju/nanaland/global/config/SwaggerConfig.java b/src/main/java/com/jeju/nanaland/global/config/SwaggerConfig.java index 413f5833..6b5f079c 100644 --- a/src/main/java/com/jeju/nanaland/global/config/SwaggerConfig.java +++ b/src/main/java/com/jeju/nanaland/global/config/SwaggerConfig.java @@ -1,7 +1,5 @@ package com.jeju.nanaland.global.config; -import io.swagger.v3.oas.annotations.OpenAPIDefinition; -import io.swagger.v3.oas.annotations.servers.Server; import io.swagger.v3.oas.models.Components; import io.swagger.v3.oas.models.OpenAPI; import io.swagger.v3.oas.models.info.Info; @@ -12,7 +10,6 @@ import org.springframework.context.annotation.Configuration; @Configuration -@OpenAPIDefinition(servers = {@Server(url = "https://nanaland.site")}) public class SwaggerConfig { @Value("${springdoc.version}") From 94b634f059bd33878af480d015a51a6bee199c04 Mon Sep 17 00:00:00 2001 From: jyajoo Date: Fri, 8 Nov 2024 14:02:51 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[#499]=20feat:=20RedisConfig=EC=97=90=20Dat?= =?UTF-8?q?abase=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/jeju/nanaland/global/config/RedisConfig.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/jeju/nanaland/global/config/RedisConfig.java b/src/main/java/com/jeju/nanaland/global/config/RedisConfig.java index 186c97c8..4de81394 100644 --- a/src/main/java/com/jeju/nanaland/global/config/RedisConfig.java +++ b/src/main/java/com/jeju/nanaland/global/config/RedisConfig.java @@ -24,12 +24,16 @@ public class RedisConfig { @Value("${spring.data.redis.password}") private String password; + @Value("${spring.data.redis.database}") + private int database; + @Bean public RedisConnectionFactory redisConnectionFactory() { RedisStandaloneConfiguration redisStandaloneConfiguration = new RedisStandaloneConfiguration(); redisStandaloneConfiguration.setHostName(host); redisStandaloneConfiguration.setPort(port); redisStandaloneConfiguration.setPassword(password); + redisStandaloneConfiguration.setDatabase(database); return new LettuceConnectionFactory(redisStandaloneConfiguration); }