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 명세서")