From 16923a055da37b0007888b8d6d86d5d4fbf0138b Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Mon, 24 Jun 2024 18:04:29 +0900 Subject: [PATCH] build: web war build test --- pom.xml | 21 ++++++++++++++ .../cokr/xit/adds/XitBootApplication.java | 28 ++++++------------- 2 files changed, 30 insertions(+), 19 deletions(-) diff --git a/pom.xml b/pom.xml index c47b948..577c1ed 100644 --- a/pom.xml +++ b/pom.xml @@ -77,6 +77,27 @@ app-support-res 0.0.1-SNAPSHOT + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/java/cokr/xit/adds/XitBootApplication.java b/src/main/java/cokr/xit/adds/XitBootApplication.java index 5cb894b..460d06c 100644 --- a/src/main/java/cokr/xit/adds/XitBootApplication.java +++ b/src/main/java/cokr/xit/adds/XitBootApplication.java @@ -1,23 +1,13 @@ package cokr.xit.adds; 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 org.springframework.test.context.ContextConfiguration; -import cokr.xit.base.boot.MvcConfig2; -import cokr.xit.base.boot.SecurityConfig; -import cokr.xit.foundation.boot.CommonConfig; -import cokr.xit.foundation.boot.DatasourceConfig; -import cokr.xit.foundation.boot.ServletConfig; -import cokr.xit.foundation.boot.TransactionConfig; +import cokr.xit.base.boot.XitBaseApplication; -@SpringBootApplication -@ImportAutoConfiguration({CommonConfig.class, ServletConfig.class, MvcConfig2.class, DatasourceConfig.class, TransactionConfig.class, SecurityConfig.class}) -@ContextConfiguration({"classpath:spring/context-*.xml"}) -public class XitBootApplication extends SpringBootServletInitializer { +// @SpringBootApplication +// @ImportAutoConfiguration({CommonConfig.class, ServletConfig.class, MvcConfig2.class, DatasourceConfig.class, TransactionConfig.class, SecurityConfig.class}) +// @ContextConfiguration({"classpath:spring/context-*.xml"}) +public class XitBootApplication extends XitBaseApplication { public static void main(String[] args) { SpringApplication.run(XitBootApplication.class, args); @@ -30,8 +20,8 @@ public class XitBootApplication extends SpringBootServletInitializer { // application.run(args); } - @Override - protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { - return application.sources(XitBootApplication.class); - } + // @Override + // protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { + // return application.sources(XitBootApplication.class); + // } }