From cd53876a9db96f1ed058486aeacf5db6f52cf50a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A4=80=EC=8D=A8=ED=81=AC?= Date: Tue, 5 Mar 2024 00:09:46 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20https=20=EC=82=AC=EC=9A=A9=EC=97=90=20?= =?UTF-8?q?=EB=94=B0=EB=A5=B8=20swagge=E3=84=B1=C3=ACr=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=ED=8C=A1=EB=A6=ACvkdl=ED=8C=A1=EB=9F=AC=E3=85=A3?= =?UTF-8?q?=E3=85=8F=E3=85=87=C3=AB=C2=9F=EC=84=A4=EC=A0=95=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../umc/networkingService/config/SwaggerConfig.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/umc/networkingService/config/SwaggerConfig.java b/src/main/java/com/umc/networkingService/config/SwaggerConfig.java index 3cf8c2ae..21c414b8 100644 --- a/src/main/java/com/umc/networkingService/config/SwaggerConfig.java +++ b/src/main/java/com/umc/networkingService/config/SwaggerConfig.java @@ -5,9 +5,12 @@ import io.swagger.v3.oas.models.info.Info; import io.swagger.v3.oas.models.security.SecurityRequirement; import io.swagger.v3.oas.models.security.SecurityScheme; +import io.swagger.v3.oas.models.servers.Server; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +import java.util.List; + @Configuration public class SwaggerConfig { @Bean @@ -24,15 +27,16 @@ public OpenAPI openAPI() { .type(SecurityScheme.Type.HTTP) .scheme("Bearer")); + Server server = new Server(); + server.setUrl("https://umcservice.shop"); + return new OpenAPI() .addSecurityItem(securityRequirement) .components(components) - .info(apiInfo()); - + .info(apiInfo()) + .servers(List.of(server)); } - - private Info apiInfo() { return new Info() .title("UMC 네트워킹 서비스 API 명세서")