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 +