Skip to content

Commit 76a41f1

Browse files
committed
Fix : Swagger Config 수정
1 parent 6afb023 commit 76a41f1

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

src/main/java/com/going/server/global/config/SwaggerConfig.java

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,14 @@
1111
@Configuration
1212
public class SwaggerConfig {
1313

14-
@Bean
15-
public OpenAPI OpenAPI() {
16-
Info info = new Info()
17-
.title("Test SpringBoot API")
18-
.description("<h3>CapGoing API</h3>")
19-
.version("1.0.0");
20-
21-
return new OpenAPI()
22-
.info(info);
23-
}
24-
2514
@Bean
2615
public OpenAPI customOpenAPI() {
2716
return new OpenAPI()
28-
.addServersItem(new Server().url("http://43.201.251.243:8000/")); // FastAPI 서버 URL 추가
17+
.info(new Info()
18+
.title("Test SpringBoot API")
19+
.description("<h3>CapGoing API</h3>")
20+
.version("1.0.0"))
21+
.addServersItem(new Server().url("http://43.201.251.243:8000/")); // FastAPI 서버 추가
2922
}
3023

3124
@Bean

0 commit comments

Comments
 (0)