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); + } +}