From b1edbcc6adee234330cf4340942533aa8f6d8e12 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 10 Oct 2023 12:08:22 +0900 Subject: [PATCH] no message --- .../cokr/xit/custom/boot/ServletConfig2.java | 16 ---------------- src/main/resources/application.yml | 9 +++++++-- src/main/resources/logback-spring.xml | 1 - 3 files changed, 7 insertions(+), 19 deletions(-) delete mode 100644 src/main/java/cokr/xit/custom/boot/ServletConfig2.java diff --git a/src/main/java/cokr/xit/custom/boot/ServletConfig2.java b/src/main/java/cokr/xit/custom/boot/ServletConfig2.java deleted file mode 100644 index d3752b07..00000000 --- a/src/main/java/cokr/xit/custom/boot/ServletConfig2.java +++ /dev/null @@ -1,16 +0,0 @@ -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/*"); - } - -} diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 198298f5..7109484e 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,8 +1,8 @@ server: port: 39700 servlet: - context-path: / - + context-path: / + spring: application: name: dummy-external-system @@ -30,6 +30,11 @@ spring: web: resources: static-locations: /resources/,file:files/ + +cxf: + path: /lvis/services + jaxrs: + component-scan: true messageSource: basenames: diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml index 0a02d932..c40a46e7 100644 --- a/src/main/resources/logback-spring.xml +++ b/src/main/resources/logback-spring.xml @@ -87,5 +87,4 @@ - \ No newline at end of file