weblogic 대응 #2 - Tomcat 생성부분 제거, weblogic 프로필 분리
This commit is contained in:
@@ -6,7 +6,9 @@ import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactor
|
|||||||
import org.springframework.boot.web.servlet.server.ServletWebServerFactory;
|
import org.springframework.boot.web.servlet.server.ServletWebServerFactory;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
import org.springframework.context.annotation.Profile;
|
||||||
|
|
||||||
|
@Profile("!weblogic")
|
||||||
@Configuration
|
@Configuration
|
||||||
public class ServletConfig {
|
public class ServletConfig {
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
Reference in New Issue
Block a user