This is an automated email from the ASF dual-hosted git repository.
benjobs pushed a commit to branch conf
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git
The following commit(s) were added to refs/heads/conf by this push:
new 9286e6b27 [Improve] minor improve
9286e6b27 is described below
commit 9286e6b27f50dcfb57feb006bb15ad27894eaa33
Author: benjobs <[email protected]>
AuthorDate: Sat Mar 30 18:38:10 2024 +0800
[Improve] minor improve
---
.../apache/streampark/console/base/config/SpringProperties.java | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git
a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/base/config/SpringProperties.java
b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/base/config/SpringProperties.java
index 48c1fb0b7..b0079ab0e 100644
---
a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/base/config/SpringProperties.java
+++
b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/base/config/SpringProperties.java
@@ -107,9 +107,8 @@ public class SpringProperties {
File file = new File(appHome + "/conf/config.yaml");
if (file.exists() && file.isFile()) {
Properties properties = new Properties();
- Map<String, String> configMapping =
- PropertiesUtils.fromYamlFileAsJava(file.getAbsolutePath());
- properties.putAll(configMapping);
+ Map<String, String> config =
PropertiesUtils.fromYamlFileAsJava(file.getAbsolutePath());
+ properties.putAll(config);
return properties;
}
throw new ExceptionInInitializerError(file.getAbsolutePath() + " not
found, please check.");
@@ -117,8 +116,8 @@ public class SpringProperties {
InputStream inputStream =
SpringProperties.class.getClassLoader().getResourceAsStream("config.yaml");
Properties properties = new Properties();
- Map<String, String> configMapping =
PropertiesUtils.fromYamlFileAsJava(inputStream);
- properties.putAll(configMapping);
+ Map<String, String> config =
PropertiesUtils.fromYamlFileAsJava(inputStream);
+ properties.putAll(config);
return properties;
}
}