Skip to content

Commit

Permalink
SwaggerConfig 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomeo184 committed Nov 13, 2023
1 parent aea14c2 commit af2b0cd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/com/offer/config/SwaggerConfig.java
Original file line number Diff line number Diff line change
@@ -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(
Expand All @@ -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));
}
}

0 comments on commit af2b0cd

Please sign in to comment.