|
@@ -13,6 +13,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
import org.springframework.boot.jdbc.DataSourceBuilder;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
+import org.springframework.context.annotation.PropertySource;
|
|
|
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
|
|
|
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
|
|
|
|
|
@@ -28,6 +29,7 @@ import javax.sql.DataSource;
|
|
|
**/
|
|
|
@Configuration
|
|
|
@MapperScan(basePackages = "com.shkpr.service.aimodelpower.dbdao.mapper.childpg",sqlSessionFactoryRef = "db2SqlSessionFactory")
|
|
|
+@PropertySource(value = "file:${global.sql.config.path}", ignoreResourceNotFound = true, encoding="utf-8")
|
|
|
public class ChildPgDataSourceConfig {
|
|
|
|
|
|
@Value("${spring.datasource.db2.driver-class-name:}")
|