Skip to content

Commit 1682151

Browse files
committed
Change AppPropertySource position
1 parent 6e93e1a commit 1682151

File tree

1 file changed

+3
-1
lines changed
  • joylive-core/joylive-governance-api/src/main/java/com/jd/live/agent/governance/bootstrap

1 file changed

+3
-1
lines changed

joylive-core/joylive-governance-api/src/main/java/com/jd/live/agent/governance/bootstrap/ConfigPreparation.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ public void onLoading(ClassLoader classLoader, Class<?> mainClass) {
6666

6767
@Override
6868
public void onEnvironmentPrepared(AppBootstrapContext context, AppEnvironment environment) {
69-
env.ifPresentRemotes(remotes -> environment.addFirst(new MapSource("LiveAgent.http", remotes)));
69+
// add to last
70+
env.ifPresentRemotes(remotes -> environment.addLast(new MapSource("LiveAgent.http", remotes)));
7071
if (configCenter != null) {
72+
// add to first
7173
configCenter.ifPresent(configurator -> environment.addFirst(new ConfiguratorSource(configurator)));
7274
}
7375
}

0 commit comments

Comments
 (0)