Skip to content

Commit

Permalink
fix(yml): hikariCP 설정, OpenInView 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
qlido committed Apr 8, 2024
1 parent f575215 commit 8a54350
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
24 changes: 15 additions & 9 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
spring:

config:
activate:
on-profile: local
Expand All @@ -9,23 +8,33 @@ spring:
url: ${DB_URL}
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
redis:
port: 6379
host: localhost
hikari:
maximum-pool-size: 15
connection-timeout: 5000
validation-timeout: 2000
minimum-idle: 15
idle-timeout: 600000
max-lifetime: 1800000
data:
redis:
port: 6379
host: localhost

logging:
level:
org:
hibernate:
SQL: debug
com.zaxxer.hikari.HikariConfig: DEBUG
com.zaxxer.hikari: TRACE

jpa:
database: mysql

database-platform: org.hibernate.dialect.MySQLDialect
generate-ddl: true
hibernate:
ddl-auto: update
ddl-auto: none
open-in-view: false

servlet:
multipart:
Expand All @@ -51,9 +60,6 @@ bsm:
secret-key: ${BSM_SECRET_KEY}
redirect-url: ${BSM_REDIRECT_URL}

image:
path: ${SAVING_URL}

#S3
aws:
s3:
Expand Down
12 changes: 10 additions & 2 deletions src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
spring:

config:
activate:
on-profile: prod
Expand All @@ -9,6 +8,13 @@ spring:
url: ${DB_URL}
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
hikari:
maximum-pool-size: 10
connection-timeout: 5000
validation-timeout: 2000
minimum-idle: 10
idle-timeout: 600000
max-lifetime: 1800000
data:
redis:
port: 6379
Expand All @@ -19,14 +25,16 @@ spring:
org:
hibernate:
SQL: debug
com.zaxxer.hikari.HikariConfig: DEBUG
com.zaxxer.hikari: TRACE

jpa:
database: mysql

database-platform: org.hibernate.dialect.MySQLDialect
generate-ddl: true
hibernate:
ddl-auto: none
open-in-view: false

servlet:
multipart:
Expand Down

0 comments on commit 8a54350

Please sign in to comment.