Make SPRING_APPLICATION_JSON processing happen before config files

That way any properties that are needed for processing the config
files will be available in time. Makes sense given that env vars
is the main carrier of the inline JSON.
This commit is contained in:
Dave Syer 2015-10-30 09:47:27 +00:00
parent 1f675c026f
commit ee5a1f9722
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public class SpringApplicationJsonEnvironmentPostProcessor
/**
* The default order for the processor.
*/
public static final int DEFAULT_ORDER = Ordered.HIGHEST_PRECEDENCE + 20;
public static final int DEFAULT_ORDER = Ordered.HIGHEST_PRECEDENCE + 5;
private int order = DEFAULT_ORDER;