diff --git a/src/main/java/com/umc/dream/config/SwaggerConfig.java b/src/main/java/com/umc/dream/config/SwaggerConfig.java index bdb965c..2d026c7 100644 --- a/src/main/java/com/umc/dream/config/SwaggerConfig.java +++ b/src/main/java/com/umc/dream/config/SwaggerConfig.java @@ -1,10 +1,10 @@ package com.umc.dream.config; -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.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 org.springframework.web.servlet.config.annotation.WebMvcConfigurer; @@ -29,6 +29,8 @@ public OpenAPI openAPI() { // Swagger UI 접속 후, 딱 한 번만 accessToken을 입력해주면 모든 API에 토큰 인증 작업이 적용됩니다. return new OpenAPI() + .servers(Arrays.asList( + new Server().url("https://dev.seungyeon.shop").description("Develop server"), new Server().url("http://localhost:8080").description("Local server"))) .addSecurityItem(securityRequirement) .components(components); }