Skip to content

Commit

Permalink
feat: DataSource 타입 지정 HikariDataSource
Browse files Browse the repository at this point in the history
  • Loading branch information
hun-ca committed Jul 10, 2024
1 parent d0b9d5e commit 7b2e902
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.few.api.repo.datasource

import com.few.api.repo.config.ApiRepoConfig
import com.zaxxer.hikari.HikariDataSource
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.boot.jdbc.DataSourceBuilder
import org.springframework.context.annotation.Bean
Expand All @@ -20,7 +21,7 @@ class DataSourceConfig {
@Bean(name = [API_DATASOURCE])
@ConfigurationProperties(prefix = "spring.datasource")
fun apiDataSource(): DataSource {
return DataSourceBuilder.create().build()
return DataSourceBuilder.create().type(HikariDataSource::class.java).build()
}

@Bean(name = [API_TX])
Expand Down

0 comments on commit 7b2e902

Please sign in to comment.