From c5db61e8261eb81bee97d2faff0a81654cb4d90b Mon Sep 17 00:00:00 2001 From: DDonghyeo Date: Wed, 29 May 2024 21:09:41 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9Ebug=20:=20Swagger=20License=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/waither/userservice/config/SwaggerConfig.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/user-service/src/main/java/com/waither/userservice/config/SwaggerConfig.java b/user-service/src/main/java/com/waither/userservice/config/SwaggerConfig.java index a60f0b21..3347ae13 100644 --- a/user-service/src/main/java/com/waither/userservice/config/SwaggerConfig.java +++ b/user-service/src/main/java/com/waither/userservice/config/SwaggerConfig.java @@ -3,6 +3,7 @@ import io.swagger.v3.oas.models.Components; import io.swagger.v3.oas.models.OpenAPI; import io.swagger.v3.oas.models.info.Info; +import io.swagger.v3.oas.models.info.License; import io.swagger.v3.oas.models.security.SecurityRequirement; import io.swagger.v3.oas.models.security.SecurityScheme; import io.swagger.v3.oas.models.servers.Server; @@ -17,7 +18,8 @@ public OpenAPI waitherAPI() { Info info = new Info() .title("Waither User API Docs") .description("Waither User Service API 명세서입니다.") - .version("1.0.0"); + .version("1.0.0") + .license(new License()); String jwtSchemeName = "accessToken"; // API 요청헤더에 인증정보 포함 @@ -38,3 +40,6 @@ public OpenAPI waitherAPI() { .components(components); } } + + +