fix the priority of environment properties (#2412)

This commit is contained in:
jiangyuan
2023-01-28 16:41:11 +08:00
committed by GitHub
parent ee49b8e4b0
commit b57379da65
@@ -21,10 +21,10 @@ public class ArthasEnvironment implements Environment {
this.propertySources);
public ArthasEnvironment() {
propertySources
.addLast(new PropertiesPropertySource(SYSTEM_PROPERTIES_PROPERTY_SOURCE_NAME, getSystemProperties()));
propertySources.addLast(
new SystemEnvironmentPropertySource(SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME, getSystemEnvironment()));
propertySources
.addLast(new PropertiesPropertySource(SYSTEM_PROPERTIES_PROPERTY_SOURCE_NAME, getSystemProperties()));
}
/**