We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e517b99 commit 98a1e89Copy full SHA for 98a1e89
src/main/java/com/somemore/global/configure/SwaggerConfig.java
@@ -1,5 +1,7 @@
1
package com.somemore.global.configure;
2
3
+import io.swagger.v3.oas.annotations.OpenAPIDefinition;
4
+import io.swagger.v3.oas.annotations.servers.Server;
5
import io.swagger.v3.oas.models.Components;
6
import io.swagger.v3.oas.models.OpenAPI;
7
import io.swagger.v3.oas.models.info.Info;
@@ -8,6 +10,11 @@
8
10
import org.springframework.context.annotation.Bean;
9
11
import org.springframework.context.annotation.Configuration;
12
13
+@OpenAPIDefinition(
14
+ servers = {
15
+ @Server(url = "https://api.somemore.site", description = "개발 서버"),
16
+ @Server(url = "http://localhost:8080", description = "로컬 서버")
17
+ })
18
@Configuration
19
public class SwaggerConfig {
20
0 commit comments