From 52c2e0927661c526e80d7fc9f6dc28ba6cc761af Mon Sep 17 00:00:00 2001 From: pricelees Date: Sun, 27 Jul 2025 13:00:36 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20profile=EB=B3=84=20application=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20=EB=B6=84=EB=A6=AC=20=EB=B0=8F=20=EC=83=88?= =?UTF-8?q?=EB=A1=9C=20=EC=B6=94=EA=B0=80=EB=90=9C=20query-logger=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-local.yaml | 40 +++++++++++++++++++++++ src/main/resources/application.yaml | 28 ++-------------- 2 files changed, 42 insertions(+), 26 deletions(-) create mode 100644 src/main/resources/application-local.yaml diff --git a/src/main/resources/application-local.yaml b/src/main/resources/application-local.yaml new file mode 100644 index 00000000..200aec25 --- /dev/null +++ b/src/main/resources/application-local.yaml @@ -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 \ No newline at end of file diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 378e93fd..9f572954 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -1,33 +1,9 @@ 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 + profiles: + active: ${ACTIVE_PROFILE:local} payment: api-base-url: https://api.tosspayments.com - confirm-secret-key: test_gsk_docs_OaPz8L5KdmQXkzRz3y47BMw6 - read-timeout: 3 - connect-timeout: 30 springdoc: swagger-ui: