From c86d3c98a9499cf7b319d5f2c66bc3a37c002fd0 Mon Sep 17 00:00:00 2001 From: 0702Yoon Date: Sat, 10 Aug 2024 12:33:14 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20Swagger=20=EC=9A=94=EC=B2=AD?= =?UTF-8?q?=EC=9D=84=20https=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bigbrotherbe/global/swagger/SwaggerConfig.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/example/bigbrotherbe/global/swagger/SwaggerConfig.java b/src/main/java/com/example/bigbrotherbe/global/swagger/SwaggerConfig.java index c53ded9..67b08f6 100644 --- a/src/main/java/com/example/bigbrotherbe/global/swagger/SwaggerConfig.java +++ b/src/main/java/com/example/bigbrotherbe/global/swagger/SwaggerConfig.java @@ -2,6 +2,8 @@ import io.swagger.v3.oas.models.OpenAPI; import io.swagger.v3.oas.models.info.Info; +import io.swagger.v3.oas.models.servers.Server; +import java.util.List; import org.springdoc.core.models.GroupedOpenApi; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -14,7 +16,11 @@ public OpenAPI customOpenAPI() { return new OpenAPI() .info(new Info().title("My API") .version("1.0") - .description("My API Description")); + .description("My API Description")) + .servers(List.of( + new Server().url("https://api.mju-bigbrother.xyz") // HTTPS로 설정 + .description("Production server") + )); } @Bean