|
|
@ -24,14 +24,15 @@ import java.util.Properties; |
|
|
@EnableTransactionManagement |
|
|
@EnableTransactionManagement |
|
|
public class DataSourceConfig { |
|
|
public class DataSourceConfig { |
|
|
|
|
|
|
|
|
// private static String host = "localhost:3306"; |
|
|
|
|
|
// private static String dbpassword = "root"; |
|
|
|
|
|
|
|
|
private static String host = "localhost:3306"; |
|
|
|
|
|
private static String dbpassword = "root"; |
|
|
|
|
|
|
|
|
// private static String dbpassword = "gccroot"; |
|
|
// private static String dbpassword = "gccroot"; |
|
|
|
|
|
|
|
|
// AWS |
|
|
// AWS |
|
|
private static String host = "gcc-facial-db-instance-1.cf48eqcciziq.ap-south-1.rds.amazonaws.com:3306"; |
|
|
|
|
|
private static String dbpassword = "gcc-facial-password"; |
|
|
|
|
|
|
|
|
// private static String host = |
|
|
|
|
|
// "gcc-facial-db-instance-1.cf48eqcciziq.ap-south-1.rds.amazonaws.com:3306"; |
|
|
|
|
|
// private static String dbpassword = "gcc-facial-password"; |
|
|
|
|
|
|
|
|
////////////////////////////// (For GCC APP) //////////////////////// |
|
|
////////////////////////////// (For GCC APP) //////////////////////// |
|
|
@Configuration |
|
|
@Configuration |
|
|
@ -453,7 +454,6 @@ public class DataSourceConfig { |
|
|
return dataSource; |
|
|
return dataSource; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
////////////////////////////// (For GCC USER) //////////////////////// |
|
|
////////////////////////////// (For GCC USER) //////////////////////// |
|
|
@Bean(name = "mysqlGCCUserDataSource") |
|
|
@Bean(name = "mysqlGCCUserDataSource") |
|
|
public DataSource mysqlGCCUserDataSource() { |
|
|
public DataSource mysqlGCCUserDataSource() { |
|
|
|