From a4677913fda4936273278767cf824e1c411d2697 Mon Sep 17 00:00:00 2001 From: leebj Date: Mon, 1 Jul 2024 14:12:43 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B9=8C=EB=93=9C=20=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/fims/FimsApplication.java | 11 ++++++++++- .../java/cokr/xit/fims/ServletInitializer.java | 14 ++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 src/main/java/cokr/xit/fims/ServletInitializer.java diff --git a/src/main/java/cokr/xit/fims/FimsApplication.java b/src/main/java/cokr/xit/fims/FimsApplication.java index 30b0c074..f8eff42c 100644 --- a/src/main/java/cokr/xit/fims/FimsApplication.java +++ b/src/main/java/cokr/xit/fims/FimsApplication.java @@ -1,7 +1,9 @@ package cokr.xit.fims; +import org.springframework.boot.Banner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.ImportAutoConfiguration; +import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.context.annotation.ImportResource; import cokr.xit.base.ServletCustomizer; @@ -25,7 +27,14 @@ public class FimsApplication extends XitBaseApplication { throw new RuntimeException("서버정보 로드 오류"); } - SpringApplication.run(FimsApplication.class, args); + + final SpringApplicationBuilder applicationBuilder = new SpringApplicationBuilder(FimsApplication.class); + final SpringApplication application = applicationBuilder.build(); + application.setBannerMode(Banner.Mode.OFF); + application.setLogStartupInfo(false); + + //application.addListeners(new ApplicationPidFileWriter("fims.pid")); + application.run(args); } } diff --git a/src/main/java/cokr/xit/fims/ServletInitializer.java b/src/main/java/cokr/xit/fims/ServletInitializer.java new file mode 100644 index 00000000..7036cfa5 --- /dev/null +++ b/src/main/java/cokr/xit/fims/ServletInitializer.java @@ -0,0 +1,14 @@ +package cokr.xit.fims; + +import org.springframework.boot.builder.SpringApplicationBuilder; +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; + + + +public class ServletInitializer extends SpringBootServletInitializer { + + @Override + protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { + return application.sources(FimsApplication.class); + } +}