설정 및 로깅 레벨 조정

dev
Lim Jonguk 3 years ago
parent 073f353c14
commit 7a16c87bc2

@ -47,8 +47,9 @@ spring:
# enabled: true # enabled: true
# path: /h2-console # path: /h2-console
thymeleaf: # 미사용
cache: false # thymeleaf:
# cache: false
# ================================================================================================================== # ==================================================================================================================
# JPA logging lib setting # JPA logging lib setting
@ -63,11 +64,11 @@ logging:
org: org:
hibernate: hibernate:
# hibernate sql log 출력시 변수 바인딩 # hibernate sql log 출력시 변수 바인딩
#type: trace #type: trace
springframework: springframework:
web: web:
#CommonsRequestLoggingFilter(RequestLoggingConfig) 를 이용한 로그출력을 위해 필수 debug #CommonsRequestLoggingFilter(RequestLoggingConfig) 를 이용한 로그출력을 위해 필수 debug
filter: error filter: error
# ================================================================================================================== # ==================================================================================================================
# Spring-doc 활성 # Spring-doc 활성

@ -31,6 +31,8 @@ spring:
# ================================================================================================================== # ==================================================================================================================
jpa: jpa:
database-platform: org.hibernate.dialect.H2Dialect database-platform: org.hibernate.dialect.H2Dialect
# hibernate sql log
show-sql: false
properties: properties:
hibernate: hibernate:
format_sql: true format_sql: true
@ -38,15 +40,14 @@ spring:
hbm2ddl: hbm2ddl:
# create / create-drop / update / validate / none # create / create-drop / update / validate / none
auto: create-drop auto: create-drop
# hibernate sql log
#show-sql: false
h2: h2:
console: console:
enabled: true enabled: true
path: /h2-console path: /h2-console
thymeleaf: # # 미사용
cache: false # thymeleaf:
# cache: false
# ================================================================================================================== # ==================================================================================================================
@ -58,7 +59,7 @@ decorator:
enable-logging: true enable-logging: true
logging: logging:
level: level:
root: debug root: info
org: org:
hibernate: hibernate:
# hibernate sql log 출력시 변수 바인딩 # hibernate sql log 출력시 변수 바인딩

@ -10,7 +10,6 @@ spring:
mode: always mode: always
platform: h2 platform: h2
datasource: datasource:
driver-class-name: org.h2.Driver driver-class-name: org.h2.Driver
url: jdbc:h2:mem:xitdb;MODE=PostgreSQL;DATABASE_TO_LOWER=TRUE;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE url: jdbc:h2:mem:xitdb;MODE=PostgreSQL;DATABASE_TO_LOWER=TRUE;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
@ -22,32 +21,33 @@ spring:
username: ${spring.datasource.username} username: ${spring.datasource.username}
password: ${spring.datasource.password} password: ${spring.datasource.password}
jpa:
database-platform: org.hibernate.dialect.H2Dialect
show-sql: false
properties:
hibernate:
format_sql: true
use_sql_comments: false
hbm2ddl:
auto: create-drop
# thymeleaf:
# cache: false
decorator: decorator:
datasource: datasource:
p6spy: p6spy:
enable-logging: true enable-logging: true
logging: logging:
level: level:
root: info
org: org:
hibernate: hibernate:
type: trace type: trace
springframework: springframework:
web: web:
filter: error filter: error
root: info
jpa:
database-platform: org.hibernate.dialect.H2Dialect
properties:
hibernate:
format_sql: true
use_sql_comments: false
hbm2ddl:
auto: create-drop
show-sql: false
thymeleaf:
cache: false
springdoc: springdoc:
api-docs: api-docs:

@ -136,20 +136,20 @@ springdoc:
enabled: false enabled: false
# ================================================================================================================== # ==================================================================================================================
# view template engine setting # view template engine setting - 미사용
# ================================================================================================================== # ==================================================================================================================
#JSP와 같이 사용시 뷰 구분을 위해 컨트롤러가 뷰 이름을 반환시 thymeleaf/ 로 시작하면 타임리프로 처리하도록 view-names 지정 #JSP와 같이 사용시 뷰 구분을 위해 컨트롤러가 뷰 이름을 반환시 thymeleaf/ 로 시작하면 타임리프로 처리하도록 view-names 지정
thymeleaf: # thymeleaf:
check-template: true # check-template: true
# templates 디렉토리에 파일이 있는지 없는지 체크, 없으면 에러 # # templates 디렉토리에 파일이 있는지 없는지 체크, 없으면 에러
check-template-location: true # check-template-location: true
encoding: UTF-8 # encoding: UTF-8
mode: HTML # mode: HTML
prefix: classpath:templates/ # prefix: classpath:templates/
suffix: .html # suffix: .html
# profiles 별로 분리 # # profiles 별로 분리
#cache: false # #cache: false
view-names: thymeleaf/* # view-names: thymeleaf/*
# devtools # devtools
devtools: devtools:

Loading…
Cancel
Save