From 0110b75591290c35eeaf4bf1702cc73071aef19f Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 26 Jun 2023 16:14:56 +0900 Subject: [PATCH] =?UTF-8?q?FimsApplication=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cokr/xit/fims/FimsApplication.java | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/src/main/java/cokr/xit/fims/FimsApplication.java b/src/main/java/cokr/xit/fims/FimsApplication.java index f6d5fb7b..8df797e2 100644 --- a/src/main/java/cokr/xit/fims/FimsApplication.java +++ b/src/main/java/cokr/xit/fims/FimsApplication.java @@ -1,13 +1,37 @@ package cokr.xit.fims; import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.ImportAutoConfiguration; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.builder.SpringApplicationBuilder; +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; +import cokr.xit.base.boot.MvcConfig2; +import cokr.xit.base.boot.SecurityConfig; import cokr.xit.base.boot.XitBaseApplication; +import cokr.xit.foundation.boot.CommonConfig; +import cokr.xit.foundation.boot.DatasourceConfig; +import cokr.xit.foundation.boot.ServletConfig; +import cokr.xit.foundation.boot.TransactionConfig; -public class FimsApplication extends XitBaseApplication { +@SpringBootApplication +@ImportAutoConfiguration({ + CommonConfig.class, + ServletConfig.class, + MvcConfig2.class, + DatasourceConfig.class, + TransactionConfig.class, + SecurityConfig.class, +}) +public class FimsApplication extends SpringBootServletInitializer { public static void main(String[] args) { SpringApplication.run(FimsApplication.class, args); } - + + @Override + protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { + return application.sources(FimsApplication.class); + } + }