diff --git a/api-repo/src/main/kotlin/com/few/api/repo/datasource/DataSourceConfig.kt b/api-repo/src/main/kotlin/com/few/api/repo/datasource/DataSourceConfig.kt index 35e157628..8f4d3cca1 100644 --- a/api-repo/src/main/kotlin/com/few/api/repo/datasource/DataSourceConfig.kt +++ b/api-repo/src/main/kotlin/com/few/api/repo/datasource/DataSourceConfig.kt @@ -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 @@ -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])