Skip to content

Commit

Permalink
[#466] feat: swagger URL 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jyajoo committed Oct 27, 2024
1 parent 57a42ea commit 5bccf5c
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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 {

Expand Down

0 comments on commit 5bccf5c

Please sign in to comment.