From 5fd920ea2c9178b28dea0d97b5b2885ff78460e6 Mon Sep 17 00:00:00 2001 From: Rinjae Date: Fri, 19 Sep 2025 13:53:48 +0900 Subject: [PATCH 1/7] =?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 From 956f67077c4b66daecfc61409ac6bd3343c3352b Mon Sep 17 00:00:00 2001 From: Rinjae Date: Fri, 19 Sep 2025 15:06:38 +0900 Subject: [PATCH 2/7] =?UTF-8?q?source,=20target=20compatiable=20=EB=B2=84?= =?UTF-8?q?=EC=A0=84=208=20=EA=B3=A0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index a687975..7396776 100644 --- a/build.gradle +++ b/build.gradle @@ -14,8 +14,8 @@ jar.enabled = false group = 'com.eactive' version = '2.0.0' -sourceCompatibility = "17" -targetCompatibility = "17" +sourceCompatibility = "8" +targetCompatibility = "8" configurations { From 5025a26e7faf6a0dfaffcf905af9b4ac9f1a1ac0 Mon Sep 17 00:00:00 2001 From: Rinjae Date: Fri, 19 Sep 2025 15:27:46 +0900 Subject: [PATCH 3/7] =?UTF-8?q?tomcat=20=EC=A0=9C=EC=99=B8=20=EC=98=B5?= =?UTF-8?q?=EC=85=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index 7396776..3a41770 100644 --- a/build.gradle +++ b/build.gradle @@ -57,6 +57,11 @@ dependencies { implementation 'com.navercorp.lucy:lucy-xss-servlet:2.0.1' implementation group: 'com.lmax', name: 'disruptor', version: '3.4.4' + if (project.hasProperty("profile") && project.property("profile") == "weblogic") { + // WebLogic 배포 시에는 톰캣을 WAR에 넣지 않음 + providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat' + } + // implementation 'io.springfox:springfox-boot-starter:3.0.0' implementation 'org.apache.httpcomponents:httpclient:4.5.14' implementation 'com.hazelcast:hazelcast:4.2.8' From eadc09ef0af71ddd16b646ee3f2a5847a14ed63e Mon Sep 17 00:00:00 2001 From: Rinjae Date: Fri, 19 Sep 2025 16:37:16 +0900 Subject: [PATCH 4/7] working weblogic --- build.gradle | 7 ++++++- src/main/resources/weblogic.xml | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 3a41770..532c85b 100644 --- a/build.gradle +++ b/build.gradle @@ -46,7 +46,7 @@ dependencies { implementation 'org.mapstruct:mapstruct:1.5.5.Final' implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.data:spring-data-envers' - implementation 'org.springframework.boot:spring-boot-starter-web' + implementation 'org.springframework.boot:spring-boot-starter-validation' implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' implementation 'org.springframework.boot:spring-boot-starter-security' @@ -59,7 +59,12 @@ dependencies { if (project.hasProperty("profile") && project.property("profile") == "weblogic") { // WebLogic 배포 시에는 톰캣을 WAR에 넣지 않음 + implementation('org.springframework.boot:spring-boot-starter-web') { + exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat' + } providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat' + } else { + implementation 'org.springframework.boot:spring-boot-starter-web' } // implementation 'io.springfox:springfox-boot-starter:3.0.0' diff --git a/src/main/resources/weblogic.xml b/src/main/resources/weblogic.xml index 7784cb1..fb3302a 100644 --- a/src/main/resources/weblogic.xml +++ b/src/main/resources/weblogic.xml @@ -15,6 +15,7 @@ + 1800 JSESSIONID_ONL From fba45a4e98028da3396795a3b80bec0c976a21b4 Mon Sep 17 00:00:00 2001 From: Rinjae Date: Mon, 22 Sep 2025 19:39:49 +0900 Subject: [PATCH 5/7] =?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 | 2 +- src/main/java/com/eactive/testmaster/ElinkTestMaster.java | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 532c85b..09ebc4a 100644 --- a/build.gradle +++ b/build.gradle @@ -62,7 +62,7 @@ dependencies { implementation('org.springframework.boot:spring-boot-starter-web') { exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat' } - providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat' + providedCompile "javax:javaee-api:8.0" } else { implementation 'org.springframework.boot:spring-boot-starter-web' } diff --git a/src/main/java/com/eactive/testmaster/ElinkTestMaster.java b/src/main/java/com/eactive/testmaster/ElinkTestMaster.java index d03e8bc..e70df84 100644 --- a/src/main/java/com/eactive/testmaster/ElinkTestMaster.java +++ b/src/main/java/com/eactive/testmaster/ElinkTestMaster.java @@ -3,6 +3,7 @@ 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.builder.SpringApplicationBuilder; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.context.annotation.ComponentScan; @@ -11,6 +12,10 @@ import org.springframework.context.annotation.ComponentScan; }) @ComponentScan("com.eactive") public class ElinkTestMaster extends SpringBootServletInitializer { + @Override + protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { + return application.sources(ElinkTestMaster.class); + } public static void main(String[] args) { SpringApplication.run(ElinkTestMaster.class, args); From 00c904aafb2ea39518f90b73d8bffd42802160c2 Mon Sep 17 00:00:00 2001 From: Rinjae Date: Mon, 22 Sep 2025 19:47:18 +0900 Subject: [PATCH 6/7] =?UTF-8?q?weblogic=20=EB=8C=80=EC=9D=91=20#2=20-=20To?= =?UTF-8?q?mcat=20=EC=83=9D=EC=84=B1=EB=B6=80=EB=B6=84=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0,=20weblogic=20=ED=94=84=EB=A1=9C=ED=95=84=20=EB=B6=84?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../testmaster/config/ServletConfig.java | 2 + src/main/resources/application-weblogic.yml | 51 +++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 src/main/resources/application-weblogic.yml diff --git a/src/main/java/com/eactive/testmaster/config/ServletConfig.java b/src/main/java/com/eactive/testmaster/config/ServletConfig.java index 91d55a0..5b5b8e0 100644 --- a/src/main/java/com/eactive/testmaster/config/ServletConfig.java +++ b/src/main/java/com/eactive/testmaster/config/ServletConfig.java @@ -6,7 +6,9 @@ import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactor import org.springframework.boot.web.servlet.server.ServletWebServerFactory; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Profile; +@Profile("!weblogic") @Configuration public class ServletConfig { diff --git a/src/main/resources/application-weblogic.yml b/src/main/resources/application-weblogic.yml new file mode 100644 index 0000000..3011e6b --- /dev/null +++ b/src/main/resources/application-weblogic.yml @@ -0,0 +1,51 @@ +logging: + level: + root: info + web: debug + com.eactive: debug + org: + springframework: + web: + socket: debug + +server: + error.include-message: always + servlet: + session: + timeout: 180m + + context-path: / + +spring: + datasource: + url: jdbc:h2:file:./db/apidb + driverClassName: org.h2.Driver + username: sa + password: + hikari: + maximum-pool-size: 20 + minimum-idle: 5 + idle-timeout: 30000 + max-lifetime: 60000 + jpa: + hibernate: + ddl-auto: update + properties: + hibernate: + format_sql: true + show-sql: false + database-platform: org.hibernate.dialect.H2Dialect + thymeleaf: + prefix: classpath:/templates/ + check-template-location: true + suffix: .html + mode: HTML + cache: false + order: 0 + h2: + console: + enabled: true + path: /h2-console + settings: + web-allow-others: true + From 0015dbce2e8381d28ed13699158a7606a576903c Mon Sep 17 00:00:00 2001 From: Rinjae Yoo <25w0064@kjbank.com> Date: Fri, 31 Oct 2025 08:43:49 +0000 Subject: [PATCH 7/7] =?UTF-8?q?build.gradle=20=ED=8E=B8=EC=A7=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 4 ---- 1 file changed, 4 deletions(-) diff --git a/build.gradle b/build.gradle index 09ebc4a..f7dd6de 100644 --- a/build.gradle +++ b/build.gradle @@ -30,10 +30,6 @@ compileJava { options.encoding = 'UTF-8' } -repositories { - mavenCentral() -} - war { archiveFileName = "elink-test-master.war" exclude '**/persistence.xml'