|
|
@ -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 |
|
|
@ -441,7 +442,7 @@ public class DataSourceConfig { |
|
|
dataSource.setPassword(dbpassword); |
|
|
dataSource.setPassword(dbpassword); |
|
|
return dataSource; |
|
|
return dataSource; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/////////////// Shelter Inspection ///////////////////// |
|
|
/////////////// Shelter Inspection ///////////////////// |
|
|
@Bean(name = "mysqlShelterinspectionDataSource") |
|
|
@Bean(name = "mysqlShelterinspectionDataSource") |
|
|
public DataSource mysqlShelterinspectionDataSource() { |
|
|
public DataSource mysqlShelterinspectionDataSource() { |
|
|
@ -452,7 +453,6 @@ public class DataSourceConfig { |
|
|
dataSource.setPassword(dbpassword); |
|
|
dataSource.setPassword(dbpassword); |
|
|
return dataSource; |
|
|
return dataSource; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
////////////////////////////// (For GCC USER) //////////////////////// |
|
|
////////////////////////////// (For GCC USER) //////////////////////// |
|
|
@Bean(name = "mysqlGCCUserDataSource") |
|
|
@Bean(name = "mysqlGCCUserDataSource") |
|
|
|