feat: profile별 application 설정 분리 및 새로 추가된 query-logger 설정 추가

This commit is contained in:
이상진 2025-07-27 13:00:36 +09:00
parent 1ddd8f906b
commit 52c2e09276
2 changed files with 42 additions and 26 deletions

View File

@ -0,0 +1,40 @@
spring:
jpa:
show-sql: false
properties:
hibernate:
format_sql: true
ddl-auto: create-drop
defer-datasource-initialization: true
h2:
console:
enabled: true
path: /h2-console
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:mem:database
username: sa
password:
security:
jwt:
token:
secret-key: daijawligagaf@LIJ$@U)9nagnalkkgalijaddljfi
ttl-seconds: 1800000
payment:
confirm-secret-key: test_gsk_docs_OaPz8L5KdmQXkzRz3y47BMw6
read-timeout: 3
connect-timeout: 30
jdbc:
datasource-proxy:
enabled: true
include-parameter-values: false
query:
enable-logging: true
log-level: DEBUG
logger-name: query-logger
multiline: true
includes: connection,query,keys,fetch

View File

@ -1,33 +1,9 @@
spring: spring:
jpa: profiles:
show-sql: false active: ${ACTIVE_PROFILE:local}
properties:
hibernate:
format_sql: true
ddl-auto: create-drop
defer-datasource-initialization: true
h2:
console:
enabled: true
path: /h2-console
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:mem:database
username: sa
password:
security:
jwt:
token:
secret-key: daijawligagaf@LIJ$@U)9nagnalkkgalijaddljfi
ttl-seconds: 1800000
payment: payment:
api-base-url: https://api.tosspayments.com api-base-url: https://api.tosspayments.com
confirm-secret-key: test_gsk_docs_OaPz8L5KdmQXkzRz3y47BMw6
read-timeout: 3
connect-timeout: 30
springdoc: springdoc:
swagger-ui: swagger-ui: