From ef48eb58330fc58b7257bd9b207fdff374322284 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Wed, 31 Jul 2024 17:16:33 +0900 Subject: [PATCH] =?UTF-8?q?config:=20hibernate=20sql=20log=20=EC=B6=9C?= =?UTF-8?q?=EB=A0=A5=20=EC=A0=9C=EA=B1=B0=20=20=20=20=20=20=20=20=20->=20p?= =?UTF-8?q?6spy=20=EB=A1=9C=EA=B7=B8=EB=A7=8C=20=ED=99=9C=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 60 +++++++++++++++--------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index b9905ba..aa2e782 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -3,30 +3,30 @@ server: servlet: context-path: error: - include-exception: true - include-stacktrace: never + include-exception: true + include-stacktrace: never path: '/error' #http://~/error 호출 whitelabel: - enabled: true + enabled: true spring: profiles: -# active: local + # active: local active: '@spring.profiles.active@' -# include: -# prodDB -# group: -# local: -# - localDB -# prod: -# - prodDB + # include: + # prodDB + # group: + # local: + # - localDB + # prod: + # - prodDB config: import: classpath:config/conf-app.yml, classpath:config/conf-contract.yml, classpath:config/conf-log.yml, classpath:config/conf-mybatis.yml, classpath:config/conf-policy.yml, classpath:config/conf-slack.yml # main: -# allow-bean-definition-overriding: true + # allow-bean-definition-overriding: true pid: file: mdpost.pid @@ -37,7 +37,7 @@ spring: suffix: .jsp devtools: livereload: - enabled: true + enabled: true sql: init: @@ -49,44 +49,44 @@ spring: connection-test-query: SELECT 1 minimum-idle: 10 maximum-pool-size: 50 -# transaction-isolation: TRANSACTION_READ_UNCOMMITTED + # transaction-isolation: TRANSACTION_READ_UNCOMMITTED transaction-isolation: TRANSACTION_READ_COMMITTED pool-name: pool-xitworld data-source-properties: - rewriteBatchedStatments: true + rewriteBatchedStatments: true jpa: database-platform: org.hibernate.dialect.MariaDB103Dialect - show-sql: true -# generate-ddl: true #TODO: 필요 시 주석해제. generate-ddl를 true 설정 시 ddl-auto의 설정값과 무관하게 DDL 스크립트 실행 + # show-sql: true + # generate-ddl: true #TODO: 필요 시 주석해제. generate-ddl를 true 설정 시 ddl-auto의 설정값과 무관하게 DDL 스크립트 실행 hibernate: ddl-auto: none naming: -# implicit-strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy - physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy + # implicit-strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy + physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy properties: hibernate: - format_sql: true - use_sql_comments: true + # format_sql: true + # use_sql_comments: true order_inserts: true order_updates: true jdbc: batch_size: 200 -# default_batch_fetch_size: ${chunkSize:100} -# dialect: org.hibernate.dialect.MySQL57InnoDBDialect + # default_batch_fetch_size: ${chunkSize:100} + # dialect: org.hibernate.dialect.MySQL57InnoDBDialect cache: type: redis redis: - host: ${server.host:localhost} - port: 16379 -# password: -# database: -# timeout: -# sentinel: -# master: + host: ${server.host:localhost} + port: 16379 + # password: + # database: + # timeout: + # sentinel: + # master: data: redis: repositories: