| 
91 | 91 | public class ConfigFileApplicationListener implements  | 
92 | 92 | 		ApplicationListener<ApplicationEvent>, Ordered {  | 
93 | 93 | 
 
  | 
 | 94 | +	private static Log logger = LogFactory.getLog(ConfigFileApplicationListener.class);  | 
 | 95 | + | 
94 | 96 | 	private static final String DEFAULT_PROPERTIES = "defaultProperties";  | 
95 | 97 | 
 
  | 
96 |  | -	private static final String ACTIVE_PROFILES_PROPERTY = "spring.profiles.active";  | 
 | 98 | +	// Note the order is from least to most specific (last one wins)  | 
 | 99 | +	private static final String DEFAULT_SEARCH_LOCATIONS = "classpath:/,classpath:/config/,file:./,file:./config/";  | 
97 | 100 | 
 
  | 
98 |  | -	private static final String INCLUDE_PROFILES_PROPERTY = "spring.profiles.include";  | 
 | 101 | +	private static final String DEFAULT_NAMES = "application";  | 
99 | 102 | 
 
  | 
100 |  | -	private static final String CONFIG_NAME_PROPERTY = "spring.config.name";  | 
 | 103 | +	public static final String ACTIVE_PROFILES_PROPERTY = "spring.profiles.active";  | 
101 | 104 | 
 
  | 
102 |  | -	private static final String CONFIG_LOCATION_PROPERTY = "spring.config.location";  | 
 | 105 | +	public static final String INCLUDE_PROFILES_PROPERTY = "spring.profiles.include";  | 
103 | 106 | 
 
  | 
104 |  | -	// Note the order is from least to most specific (last one wins)  | 
105 |  | -	private static final String DEFAULT_SEARCH_LOCATIONS = "classpath:/,classpath:/config/,file:./,file:./config/";  | 
 | 107 | +	public static final String CONFIG_NAME_PROPERTY = "spring.config.name";  | 
106 | 108 | 
 
  | 
107 |  | -	private static final String DEFAULT_NAMES = "application";  | 
 | 109 | +	public static final String CONFIG_LOCATION_PROPERTY = "spring.config.location";  | 
108 | 110 | 
 
  | 
109 | 111 | 	public static final int DEFAULT_ORDER = Ordered.HIGHEST_PRECEDENCE + 10;  | 
110 | 112 | 
 
  | 
111 |  | -	private static Log logger = LogFactory.getLog(ConfigFileApplicationListener.class);  | 
112 |  | - | 
113 | 113 | 	private String searchLocations;  | 
114 | 114 | 
 
  | 
115 | 115 | 	private String names;  | 
 | 
0 commit comments