|
|
|
|
@ -40,9 +40,9 @@ public class MyEnvironmentPostProcessor implements EnvironmentPostProcessor {
|
|
|
|
|
String DBType = properties.getProperty("WhiteDBType") == null ? "1" : properties.getProperty("WhiteDBType");
|
|
|
|
|
Newproperties.load(new FileInputStream(NewPath));
|
|
|
|
|
properties.setProperty("spring.logback.logPath",PathUtil.TomcatPath+"/logs");
|
|
|
|
|
properties.setProperty("spring.datasource.url",properties.getProperty("WhiteDBUrl"));
|
|
|
|
|
properties.setProperty("spring.datasource.username",properties.getProperty("WhiteDBUserName"));
|
|
|
|
|
properties.setProperty("spring.datasource.password",PassWordUtils.decrypt(properties.getProperty("WhiteDBPassWord")));
|
|
|
|
|
properties.setProperty("spring.datasource.url",properties.getProperty("DBUrl"));
|
|
|
|
|
properties.setProperty("spring.datasource.username",properties.getProperty("DBUserName"));
|
|
|
|
|
properties.setProperty("spring.datasource.password",PassWordUtils.decrypt(properties.getProperty("DBPassWord")));
|
|
|
|
|
if(DBType.equals("1")){
|
|
|
|
|
properties.setProperty("spring.datasource.driver-class-name",Newproperties.getProperty("sqlClassName"));
|
|
|
|
|
properties.setProperty("spring.datasource.validationQuery",Newproperties.getProperty("sqlvalidationQuery"));
|
|
|
|
|
|