From 421d87e41e863b7b8b8842b01336eea17b3674d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=9D=80=EC=B1=84?= Date: Tue, 30 Jul 2024 11:04:15 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20swagger=20url=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../team9502/sinchulgwinong/global/config/SwaggerConfig.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/team9502/sinchulgwinong/global/config/SwaggerConfig.java b/src/main/java/team9502/sinchulgwinong/global/config/SwaggerConfig.java index 14c63ca..2f688ec 100644 --- a/src/main/java/team9502/sinchulgwinong/global/config/SwaggerConfig.java +++ b/src/main/java/team9502/sinchulgwinong/global/config/SwaggerConfig.java @@ -3,6 +3,7 @@ import io.swagger.v3.oas.models.OpenAPI; import io.swagger.v3.oas.models.info.Contact; import io.swagger.v3.oas.models.info.Info; +import io.swagger.v3.oas.models.servers.Server; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -11,6 +12,10 @@ public class SwaggerConfig { @Bean public OpenAPI customOpenAPI() { + + Server server = new Server(); + server.setUrl("https://www.sinchulgwinong.site/"); + return new OpenAPI() .info(new Info() .title("신출귀농 API 문서")