Merge pull request #4533 from dataease/pr@dev@pages

feat: 根据dataease.properties配置里的mysql链接信息来更新demo数据源的配置信息
This commit is contained in:
taojinlong 2023-02-15 11:11:37 +08:00 committed by GitHub
commit 427d1b2f00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -663,7 +663,7 @@ public class DatasourceService {
mysqlConfiguration.setUsername(env.getProperty("spring.datasource.username"));
mysqlConfiguration.setPassword(env.getProperty("spring.datasource.password"));
datasource.setConfiguration(new Gson().toJson(mysqlConfiguration));
datasourceMapper.updateByPrimaryKey(datasource);
datasourceMapper.updateByPrimaryKeyWithBLOBs(datasource);
}
}