diff --git a/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigFileApplicationListener.java b/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigFileApplicationListener.java index 9e3838c7dc..4db2bf7ef4 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigFileApplicationListener.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigFileApplicationListener.java @@ -91,25 +91,25 @@ import org.springframework.validation.BindException; public class ConfigFileApplicationListener implements ApplicationListener, Ordered { + private static Log logger = LogFactory.getLog(ConfigFileApplicationListener.class); + private static final String DEFAULT_PROPERTIES = "defaultProperties"; - private static final String ACTIVE_PROFILES_PROPERTY = "spring.profiles.active"; + // Note the order is from least to most specific (last one wins) + private static final String DEFAULT_SEARCH_LOCATIONS = "classpath:/,classpath:/config/,file:./,file:./config/"; - private static final String INCLUDE_PROFILES_PROPERTY = "spring.profiles.include"; + private static final String DEFAULT_NAMES = "application"; - private static final String CONFIG_NAME_PROPERTY = "spring.config.name"; + public static final String ACTIVE_PROFILES_PROPERTY = "spring.profiles.active"; - private static final String CONFIG_LOCATION_PROPERTY = "spring.config.location"; + public static final String INCLUDE_PROFILES_PROPERTY = "spring.profiles.include"; - // Note the order is from least to most specific (last one wins) - private static final String DEFAULT_SEARCH_LOCATIONS = "classpath:/,classpath:/config/,file:./,file:./config/"; + public static final String CONFIG_NAME_PROPERTY = "spring.config.name"; - private static final String DEFAULT_NAMES = "application"; + public static final String CONFIG_LOCATION_PROPERTY = "spring.config.location"; public static final int DEFAULT_ORDER = Ordered.HIGHEST_PRECEDENCE + 10; - private static Log logger = LogFactory.getLog(ConfigFileApplicationListener.class); - private String searchLocations; private String names;