Skip to content

Commit

Permalink
Actually apply the override properties first so that they will be app…
Browse files Browse the repository at this point in the history
…lied before environment variables
  • Loading branch information
gmokki committed Apr 10, 2018
1 parent cb53c7c commit 7382e37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class NflowStandardEnvironment extends StandardEnvironment {
private static final Logger logger = getLogger(NflowStandardEnvironment.class);

public NflowStandardEnvironment(Map<String, Object> overrideProperties) {
getPropertySources().addLast(new MapPropertySource("override", overrideProperties));
getPropertySources().addFirst(new MapPropertySource("override", overrideProperties));
addExternalPropertyResource();
String env = getProperty("env", "local");
addActiveProfile(env);
Expand Down

0 comments on commit 7382e37

Please sign in to comment.