From 00c904aafb2ea39518f90b73d8bffd42802160c2 Mon Sep 17 00:00:00 2001 From: Rinjae Date: Mon, 22 Sep 2025 19:47:18 +0900 Subject: [PATCH] =?UTF-8?q?weblogic=20=EB=8C=80=EC=9D=91=20#2=20-=20Tomcat?= =?UTF-8?q?=20=EC=83=9D=EC=84=B1=EB=B6=80=EB=B6=84=20=EC=A0=9C=EA=B1=B0,?= =?UTF-8?q?=20weblogic=20=ED=94=84=EB=A1=9C=ED=95=84=20=EB=B6=84=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 +