From af88c674c3ccb225b232604c13926678771c542d Mon Sep 17 00:00:00 2001 From: bbabbi Date: Sat, 9 Nov 2024 21:48:43 +0900 Subject: [PATCH] =?UTF-8?q?#33=20[FEAT]=20:=20API=EA=B0=80=20=ED=98=B8?= =?UTF-8?q?=EC=8A=A4=ED=8C=85=20=EB=90=98=EB=8A=94=20=EC=84=9C=EB=B2=84=20?= =?UTF-8?q?=EB=AA=A9=EB=A1=9D=20=EC=A0=95=EC=9D=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/cecd/server/external/SwaggerConfig.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/server/src/main/java/org/cecd/server/external/SwaggerConfig.java b/server/src/main/java/org/cecd/server/external/SwaggerConfig.java index c1d9d33..0f8a864 100644 --- a/server/src/main/java/org/cecd/server/external/SwaggerConfig.java +++ b/server/src/main/java/org/cecd/server/external/SwaggerConfig.java @@ -1,11 +1,21 @@ package org.cecd.server.external; +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; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +@OpenAPIDefinition( + servers = { + @Server(url = "https://www.dgu1921.p-e.kr", description = "Dev Server"), + @Server(url = "http://localhost:8080", description = "Local Server") + } +) + + @Configuration public class SwaggerConfig {