diff --git a/pom.xml b/pom.xml index 1a122d3f..f17477a3 100644 --- a/pom.xml +++ b/pom.xml @@ -15,7 +15,6 @@ 0.0.1-SNAPSHOT fims fims - war 17 @@ -63,23 +62,12 @@ cokr.xit.boot xit-base-starter 23.04.01-SNAPSHOT - - - org.springframework.boot - spring-boot-starter-tomcat - - org.mariadb.jdbc mariadb-java-client runtime - - org.springframework.boot - spring-boot-starter-tomcat - provided - diff --git a/src/main/java/cokr/xit/fims/FimsApplication.java b/src/main/java/cokr/xit/fims/FimsApplication.java index 8df797e2..c40490a3 100644 --- a/src/main/java/cokr/xit/fims/FimsApplication.java +++ b/src/main/java/cokr/xit/fims/FimsApplication.java @@ -1,37 +1,12 @@ 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; -@SpringBootApplication -@ImportAutoConfiguration({ - CommonConfig.class, - ServletConfig.class, - MvcConfig2.class, - DatasourceConfig.class, - TransactionConfig.class, - SecurityConfig.class, -}) -public class FimsApplication extends SpringBootServletInitializer { +public class FimsApplication extends XitBaseApplication { public static void main(String[] args) { SpringApplication.run(FimsApplication.class, args); } - @Override - protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { - return application.sources(FimsApplication.class); - } - }