diff --git a/src/main/java/com/offer/config/SwaggerConfig.java b/src/main/java/com/offer/config/SwaggerConfig.java index 50961e5..ded200c 100644 --- a/src/main/java/com/offer/config/SwaggerConfig.java +++ b/src/main/java/com/offer/config/SwaggerConfig.java @@ -1,7 +1,12 @@ package com.offer.config; + import io.swagger.v3.oas.annotations.OpenAPIDefinition; import io.swagger.v3.oas.annotations.info.Info; +import io.swagger.v3.oas.models.OpenAPI; +import io.swagger.v3.oas.models.servers.Server; +import java.util.List; +import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @OpenAPIDefinition( @@ -10,4 +15,11 @@ version = "v1")) @Configuration public class SwaggerConfig { + + @Bean + public OpenAPI openAPI() { + Server server = new Server(); + server.setUrl("https://offer-be.kro.kr"); + return new OpenAPI().servers(List.of(server)); + } }