|
@ -90,6 +90,15 @@ public class FigureLabelJpa {
|
|
|
return buildDataSource(datasource);
|
|
|
}
|
|
|
|
|
|
@Bean(name = "wlyy85DataSource")
|
|
|
public DataSource wlyy85DataSource() throws SQLException {
|
|
|
DruidDataSource datasource = new DruidDataSource();
|
|
|
datasource.setUrl(dataSourceProperties.getWlyy85().getUrl());
|
|
|
datasource.setUsername(dataSourceProperties.getWlyy85().getUsername());
|
|
|
datasource.setPassword(dataSourceProperties.getWlyy85().getPassword());
|
|
|
datasource.setDriverClassName(dataSourceProperties.getDriverClassName());
|
|
|
return buildDataSource(datasource);
|
|
|
}
|
|
|
|
|
|
@Bean(name = "wlyyEntityManagerFactory")
|
|
|
@Primary
|
|
@ -128,4 +137,9 @@ public class FigureLabelJpa {
|
|
|
public JdbcTemplate secondJdbcTemplate(@Qualifier("healtharchiveDataSource") DataSource dataSource) {
|
|
|
return new JdbcTemplate(dataSource);
|
|
|
}
|
|
|
|
|
|
@Bean(name = "wlyy85Template")
|
|
|
public JdbcTemplate thirdJdbcTemplate(@Qualifier("wlyy85DataSource") DataSource dataSource) {
|
|
|
return new JdbcTemplate(dataSource);
|
|
|
}
|
|
|
}
|