From 5bccf5c9ff9b213ed6b66875073dde6acf16fb8d Mon Sep 17 00:00:00 2001 From: jyajoo Date: Mon, 28 Oct 2024 03:27:16 +0900 Subject: [PATCH] =?UTF-8?q?[#466]=20feat:=20swagger=20URL=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/jeju/nanaland/global/config/SwaggerConfig.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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 1184e77b..6d27ebf8 100644 --- a/src/main/java/com/jeju/nanaland/global/config/SwaggerConfig.java +++ b/src/main/java/com/jeju/nanaland/global/config/SwaggerConfig.java @@ -1,5 +1,7 @@ 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; @@ -9,6 +11,13 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +@OpenAPIDefinition( + servers = { + @Server(url = "http://13.125.110.80:8083", description = "DEV"), + @Server(url = "https://nanaland.site", description = "PROD"), + @Server(url = "http://localhost:8080", description = "LOCAL") + } +) @Configuration public class SwaggerConfig {