From 688b59539155d7ee5bf4e8016f5e54c6fab0e0fc Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Fri, 2 Aug 2024 18:03:12 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20SpringBootServletInitializer=20=EC=A4=91?= =?UTF-8?q?=EB=B3=B5=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cokr/xit/ens/ModulePostApplication.java | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/main/java/cokr/xit/ens/ModulePostApplication.java b/src/main/java/cokr/xit/ens/ModulePostApplication.java index 4d595ff..399307d 100644 --- a/src/main/java/cokr/xit/ens/ModulePostApplication.java +++ b/src/main/java/cokr/xit/ens/ModulePostApplication.java @@ -1,15 +1,14 @@ package cokr.xit.ens; -import cokr.xit.ens.core.utils.Checks; -import lombok.extern.slf4j.Slf4j; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.context.ApplicationPidFileWriter; -import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.context.annotation.ComponentScan; import org.springframework.scheduling.annotation.EnableScheduling; +import cokr.xit.ens.core.utils.Checks; +import lombok.extern.slf4j.Slf4j; + @Slf4j @SpringBootApplication //@Import({QuerydslConfig.class, CodeMapperConfig.class}) @@ -20,7 +19,7 @@ import org.springframework.scheduling.annotation.EnableScheduling; @EnableScheduling //@EnableWebMvc //public class ModulePostApplication{ -public class ModulePostApplication extends SpringBootServletInitializer { +public class ModulePostApplication { public static void main(String[] args) { log.info("ENS Application load start..."); if (Checks.isEmpty(System.getProperty("spring.profiles.active"))) { @@ -74,11 +73,4 @@ public class ModulePostApplication extends SpringBootServletInitializer { /* multi-thread return result test */ // ResultByRunnableExample.main(args); } - - @Override - protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { - return application.sources(ModulePostApplication.class); - } - - }