mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
fix the priority of environment properties (#2412)
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user