From 5fd920ea2c9178b28dea0d97b5b2885ff78460e6 Mon Sep 17 00:00:00 2001 From: Rinjae Date: Fri, 19 Sep 2025 13:53:48 +0900 Subject: [PATCH] =?UTF-8?q?weblogic=20=EB=8C=80=EC=9D=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 19 +++++++++++++++ .../eactive/testmaster/ElinkTestMaster.java | 3 ++- src/main/resources/weblogic.xml | 23 +++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/weblogic.xml diff --git a/build.gradle b/build.gradle index 0b7a9ac..bf5d51a 100644 --- a/build.gradle +++ b/build.gradle @@ -2,6 +2,7 @@ plugins { id 'org.springframework.boot' version '2.7.17' id 'io.spring.dependency-management' version '1.1.3' id 'java' + id 'war' // id "org.sonarqube" version "4.2.1.3168" } @@ -13,6 +14,7 @@ version = '2.0.0' sourceCompatibility = "1.8" targetCompatibility = "1.8" + configurations { annotationProcessor configureEach { @@ -68,6 +70,8 @@ dependencies { runtimeOnly 'org.springframework.boot:spring-boot-devtools' implementation 'org.mdkt.compiler:InMemoryJavaCompiler:1.3.0' testImplementation 'org.springframework.boot:spring-boot-starter-test' + + providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat' } bootJar { @@ -77,3 +81,18 @@ bootJar { test { useJUnitPlatform() } + +war { + + // Set the name of the WAR file (optional) + archiveFileName = "elink-test-master.war" + +// from('src/main/resources/jeus-web-dd.xml') { into 'WEB-INF' } + from('src/main/resources/weblogic.xml') { into 'WEB-INF' } + +} + +bootWar { + archiveFileName = "elink-test-master.war" + from('src/main/resources/weblogic.xml') { into 'WEB-INF' } +} \ No newline at end of file diff --git a/src/main/java/com/eactive/testmaster/ElinkTestMaster.java b/src/main/java/com/eactive/testmaster/ElinkTestMaster.java index c92491a..d03e8bc 100644 --- a/src/main/java/com/eactive/testmaster/ElinkTestMaster.java +++ b/src/main/java/com/eactive/testmaster/ElinkTestMaster.java @@ -3,13 +3,14 @@ package com.eactive.testmaster; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration; +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.context.annotation.ComponentScan; @SpringBootApplication(exclude = { UserDetailsServiceAutoConfiguration.class, }) @ComponentScan("com.eactive") -public class ElinkTestMaster { +public class ElinkTestMaster extends SpringBootServletInitializer { public static void main(String[] args) { SpringApplication.run(ElinkTestMaster.class, args); diff --git a/src/main/resources/weblogic.xml b/src/main/resources/weblogic.xml new file mode 100644 index 0000000..7784cb1 --- /dev/null +++ b/src/main/resources/weblogic.xml @@ -0,0 +1,23 @@ + + + + / + + + + org.slf4j.* + ch.qos.logback.* + org.apache.log4j.* + org.apache.commons.logging.* + + + + + 1800 + JSESSIONID_ONL + replicated_if_clustered + + \ No newline at end of file