From e58bb8e3ecab8c23fb2797d64fdfedd168e141e1 Mon Sep 17 00:00:00 2001 From: Subi Hwang Date: Sun, 14 Jan 2024 17:15:45 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20SecurityConfig=20build.gradle=20?= =?UTF-8?q?=ED=8C=8C=EC=9D=BC=20=EC=88=98=EC=A0=95#9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 1 - .../oot/swagger/SwaggerConfig.java | 40 ++++--------------- 2 files changed, 8 insertions(+), 33 deletions(-) diff --git a/build.gradle b/build.gradle index 67ced48..f4371ba 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,6 @@ dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.4' - implementation 'org.springframework.boot:spring-boot-starter-security' compileOnly 'org.projectlombok:lombok' developmentOnly 'org.springframework.boot:spring-boot-devtools' runtimeOnly 'com.mysql:mysql-connector-j' diff --git a/src/main/java/com/endlesshorses/oot/swagger/SwaggerConfig.java b/src/main/java/com/endlesshorses/oot/swagger/SwaggerConfig.java index 85f79e5..5038170 100644 --- a/src/main/java/com/endlesshorses/oot/swagger/SwaggerConfig.java +++ b/src/main/java/com/endlesshorses/oot/swagger/SwaggerConfig.java @@ -3,46 +3,22 @@ import io.swagger.v3.oas.models.Components; import io.swagger.v3.oas.models.OpenAPI; import io.swagger.v3.oas.models.info.Info; -import org.springdoc.core.models.GroupedOpenApi; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration public class SwaggerConfig { - - @Bean - public GroupedOpenApi getItemApi() { - - return GroupedOpenApi - .builder() - .group("item") - .pathsToMatch("/api/item/**") - .build(); - } - - @Bean - public GroupedOpenApi getMemberApi() { - - return GroupedOpenApi - .builder() - .group("member") - .pathsToMatch("/api/member/**") - .build(); - - } - @Bean - public OpenAPI getOpenApi() { - - return new OpenAPI().components(new Components()) - .info(getInfo()); - + public OpenAPI openAPI() { + return new OpenAPI() + .components(new Components()) + .info(apiInfo()); } - private Info getInfo() { + private Info apiInfo() { return new Info() - .version("1.0.0") - .description("COMMERCE REST API DOC") - .title("COMMERCE"); + .title("OOT") + .description("OOT API 명세") + .version("1.0.0"); } } \ No newline at end of file