forked from github/dataease
Merge pull request #4533 from dataease/pr@dev@pages
feat: 根据dataease.properties配置里的mysql链接信息来更新demo数据源的配置信息
This commit is contained in:
commit
427d1b2f00
@ -663,7 +663,7 @@ public class DatasourceService {
|
|||||||
mysqlConfiguration.setUsername(env.getProperty("spring.datasource.username"));
|
mysqlConfiguration.setUsername(env.getProperty("spring.datasource.username"));
|
||||||
mysqlConfiguration.setPassword(env.getProperty("spring.datasource.password"));
|
mysqlConfiguration.setPassword(env.getProperty("spring.datasource.password"));
|
||||||
datasource.setConfiguration(new Gson().toJson(mysqlConfiguration));
|
datasource.setConfiguration(new Gson().toJson(mysqlConfiguration));
|
||||||
datasourceMapper.updateByPrimaryKey(datasource);
|
datasourceMapper.updateByPrimaryKeyWithBLOBs(datasource);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user