From fde00e289538892b2e1b2e79b731485c31c6a627 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 10 Oct 2023 14:40:06 +0900 Subject: [PATCH] no message --- src/main/java/cokr/xit/TsApplication.java | 9 +++++++++ .../cokr/xit/custom/boot/ServletConfig2.java | 16 ++++++++++++++++ src/main/resources/application.yml | 4 ---- 3 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 src/main/java/cokr/xit/custom/boot/ServletConfig2.java diff --git a/src/main/java/cokr/xit/TsApplication.java b/src/main/java/cokr/xit/TsApplication.java index ebb29847..c03fe1fe 100644 --- a/src/main/java/cokr/xit/TsApplication.java +++ b/src/main/java/cokr/xit/TsApplication.java @@ -1,10 +1,19 @@ package cokr.xit; import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.ImportAutoConfiguration; import org.springframework.context.annotation.ImportResource; +import cokr.xit.custom.boot.DatasourceConfig2; +import cokr.xit.custom.boot.ServletConfig2; import cokr.xit.foundation.boot.FoundationApplication; +import testserver.wsdlserver.lvisserver.WebServiceConfig; +@ImportAutoConfiguration({ + ServletConfig2.class, + DatasourceConfig2.class, + WebServiceConfig.class +}) @ImportResource("classpath:spring/context-*.xml") public class TsApplication extends FoundationApplication { diff --git a/src/main/java/cokr/xit/custom/boot/ServletConfig2.java b/src/main/java/cokr/xit/custom/boot/ServletConfig2.java new file mode 100644 index 00000000..97bb0146 --- /dev/null +++ b/src/main/java/cokr/xit/custom/boot/ServletConfig2.java @@ -0,0 +1,16 @@ +package cokr.xit.custom.boot; + +import org.apache.cxf.transport.servlet.CXFServlet; +import org.springframework.boot.web.servlet.ServletRegistrationBean; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +@Configuration +public class ServletConfig2 { + + @Bean + public ServletRegistrationBean cxfServlet() { + return new ServletRegistrationBean<>(new CXFServlet(), "/lvis/services/*"); + } + +} \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index ba30f6e4..1e24f771 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -2,10 +2,6 @@ server: port: 39700 servlet: context-path: / - tomcat: - basedir: "." - accesslog: - enabled: true spring: application: