Skip to content

Commit

Permalink
fix: DataSource config 경로 변경 spring.datasource.hikari
Browse files Browse the repository at this point in the history
  • Loading branch information
hun-ca committed Jul 10, 2024
1 parent 7b2e902 commit d4c48fc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class DataSourceConfig {
}

@Bean(name = [API_DATASOURCE])
@ConfigurationProperties(prefix = "spring.datasource")
@ConfigurationProperties(prefix = "spring.datasource.hikari")
fun apiDataSource(): DataSource {
return DataSourceBuilder.create().type(HikariDataSource::class.java).build()
}
Expand Down
10 changes: 5 additions & 5 deletions api-repo/src/main/resources/application-api-repo-local.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
spring:
datasource:
jdbcUrl: jdbc:mysql://localhost:13306/api?allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
username: root
password: root
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
pool-name: HikariCP
jdbcUrl: jdbc:mysql://localhost:13306/api?allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
username: root
password: root
driver-class-name: com.mysql.cj.jdbc.Driver
pool-name: MAIN-POOL
minimum-idle: 4
maximum-pool-size: 16
connection-timeout: 30000 # 30 seconds
Expand Down
10 changes: 5 additions & 5 deletions api-repo/src/main/resources/application-api-repo-prd.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
spring:
datasource:
jdbcUrl: ${DB_HOSTNAME}/api?allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
pool-name: HikariCP
jdbcUrl: ${DB_HOSTNAME}/api?allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver
pool-name: MAIN-POOL
minimum-idle: 4
maximum-pool-size: 16
connection-timeout: 30000 # 30 seconds
Expand Down

0 comments on commit d4c48fc

Please sign in to comment.