Skip to content

Commit

Permalink
[Refactor] 학교 디비 접속 실험
Browse files Browse the repository at this point in the history
  • Loading branch information
hen715 committed May 2, 2024
1 parent 93d6b11 commit be0a71b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class OracleConfig {
@Bean(name = "oracleDataSource")
@ConfigurationProperties(prefix = "school.datasource")
public DataSource secondDataSource() {
HikariConfig config = new HikariConfig();
/*HikariConfig config = new HikariConfig();
config.setJdbcUrl(url);
config.setUsername(username);
config.setPassword(password);
Expand All @@ -36,8 +36,8 @@ public DataSource secondDataSource() {
config.setMinimumIdle(1);
config.setConnectionTimeout(60000); // milliseconds
config.setIdleTimeout(600000); // milliseconds
return new HikariDataSource(config);
//return DataSourceBuilder.create().type(HikariDataSource.class).build();
return new HikariDataSource(config);*/
return DataSourceBuilder.create().type(HikariDataSource.class).build();
}

@Bean(name = "oracleJdbc")
Expand Down

0 comments on commit be0a71b

Please sign in to comment.