weblogic 대응

This commit is contained in:
Rinjae
2025-09-19 13:53:48 +09:00
parent fbf6d9d2b1
commit 5fd920ea2c
3 changed files with 44 additions and 1 deletions
+19
View File
@@ -2,6 +2,7 @@ plugins {
id 'org.springframework.boot' version '2.7.17' id 'org.springframework.boot' version '2.7.17'
id 'io.spring.dependency-management' version '1.1.3' id 'io.spring.dependency-management' version '1.1.3'
id 'java' id 'java'
id 'war'
// id "org.sonarqube" version "4.2.1.3168" // id "org.sonarqube" version "4.2.1.3168"
} }
@@ -13,6 +14,7 @@ version = '2.0.0'
sourceCompatibility = "1.8" sourceCompatibility = "1.8"
targetCompatibility = "1.8" targetCompatibility = "1.8"
configurations { configurations {
annotationProcessor annotationProcessor
configureEach { configureEach {
@@ -68,6 +70,8 @@ dependencies {
runtimeOnly 'org.springframework.boot:spring-boot-devtools' runtimeOnly 'org.springframework.boot:spring-boot-devtools'
implementation 'org.mdkt.compiler:InMemoryJavaCompiler:1.3.0' implementation 'org.mdkt.compiler:InMemoryJavaCompiler:1.3.0'
testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation 'org.springframework.boot:spring-boot-starter-test'
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
} }
bootJar { bootJar {
@@ -77,3 +81,18 @@ bootJar {
test { test {
useJUnitPlatform() 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' }
}
@@ -3,13 +3,14 @@ package com.eactive.testmaster;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration; import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication(exclude = { @SpringBootApplication(exclude = {
UserDetailsServiceAutoConfiguration.class, UserDetailsServiceAutoConfiguration.class,
}) })
@ComponentScan("com.eactive") @ComponentScan("com.eactive")
public class ElinkTestMaster { public class ElinkTestMaster extends SpringBootServletInitializer {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(ElinkTestMaster.class, args); SpringApplication.run(ElinkTestMaster.class, args);
+23
View File
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app
xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.6/weblogic-web-app.xsd">
<context-root>/</context-root>
<container-descriptor>
<prefer-application-packages>
<package-name>org.slf4j.*</package-name>
<package-name>ch.qos.logback.*</package-name>
<package-name>org.apache.log4j.*</package-name>
<package-name>org.apache.commons.logging.*</package-name>
</prefer-application-packages>
</container-descriptor>
<session-descriptor>
<timeout-secs>1800</timeout-secs>
<cookie-name>JSESSIONID_ONL</cookie-name>
<persistent-store-type>replicated_if_clustered</persistent-store-type>
</session-descriptor>
</weblogic-web-app>