From bf996c0ff9691688389e8a8ef841fd490df5e348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=99=A9=ED=98=B8=EC=9C=A4?= Date: Mon, 11 Dec 2023 11:55:58 +0900 Subject: [PATCH] =?UTF-8?q?swagger=20https=20=EC=9A=94=EC=B2=AD=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/chwipoClova/ChwipoClovaApplication.java | 3 +++ .../java/com/chwipoClova/common/config/SwaggerConfig.java | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/chwipoClova/ChwipoClovaApplication.java b/src/main/java/com/chwipoClova/ChwipoClovaApplication.java index e08bdee..8133d99 100644 --- a/src/main/java/com/chwipoClova/ChwipoClovaApplication.java +++ b/src/main/java/com/chwipoClova/ChwipoClovaApplication.java @@ -1,10 +1,13 @@ package com.chwipoClova; +import io.swagger.v3.oas.annotations.OpenAPIDefinition; +import io.swagger.v3.oas.annotations.servers.Server; import jakarta.servlet.MultipartConfigElement; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; +@OpenAPIDefinition(servers = {@Server(url = "/", description = "Default Server URL")}) @SpringBootApplication public class ChwipoClovaApplication { diff --git a/src/main/java/com/chwipoClova/common/config/SwaggerConfig.java b/src/main/java/com/chwipoClova/common/config/SwaggerConfig.java index d60c37e..323ba78 100644 --- a/src/main/java/com/chwipoClova/common/config/SwaggerConfig.java +++ b/src/main/java/com/chwipoClova/common/config/SwaggerConfig.java @@ -48,9 +48,4 @@ private Info apiInfo() { .description("Springdoc을 사용한 Swagger UI") .version("1.0.0"); } - - @Bean - public MultipartResolver multipartResolver() { - return new StandardServletMultipartResolver(); - } }