diff --git a/src/main/java/kr/inuappcenterportal/inuportal/config/OracleConfig.java b/src/main/java/kr/inuappcenterportal/inuportal/config/OracleConfig.java index 46aa8a0..165ae6e 100644 --- a/src/main/java/kr/inuappcenterportal/inuportal/config/OracleConfig.java +++ b/src/main/java/kr/inuappcenterportal/inuportal/config/OracleConfig.java @@ -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); @@ -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")