|
|
@ -41,7 +41,7 @@ import org.springframework.util.StringUtils;
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* {@link ApplicationContextInitializer} that configures the context environment by
|
|
|
|
* {@link ApplicationContextInitializer} that configures the context environment by
|
|
|
|
* loading properties from well known file locations. By default properties will be loaded
|
|
|
|
* loading properties from well known file locations. By default properties will be loaded
|
|
|
|
* from 'application.properties' and/or 'application.yaml' files in the following
|
|
|
|
* from 'application.properties' and/or 'application.yml' files in the following
|
|
|
|
* locations:
|
|
|
|
* locations:
|
|
|
|
* <ul>
|
|
|
|
* <ul>
|
|
|
|
* <li>classpath:</li>
|
|
|
|
* <li>classpath:</li>
|
|
|
@ -55,7 +55,7 @@ import org.springframework.util.StringUtils;
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* <p>
|
|
|
|
* <p>
|
|
|
|
* Additional files will also be loaded based on active profiles. For example if a 'web'
|
|
|
|
* Additional files will also be loaded based on active profiles. For example if a 'web'
|
|
|
|
* profile is active 'application-web.properties' and 'application-web.yaml' will be
|
|
|
|
* profile is active 'application-web.properties' and 'application-web.yml' will be
|
|
|
|
* considered.
|
|
|
|
* considered.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* <p>
|
|
|
|
* <p>
|
|
|
@ -78,7 +78,7 @@ public class ConfigFileApplicationContextInitializer implements
|
|
|
|
|
|
|
|
|
|
|
|
private String name = "${spring.config.name:application}";
|
|
|
|
private String name = "${spring.config.name:application}";
|
|
|
|
|
|
|
|
|
|
|
|
private int order = Integer.MIN_VALUE;
|
|
|
|
private int order = Integer.MIN_VALUE + 10;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void initialize(ConfigurableApplicationContext applicationContext) {
|
|
|
|
public void initialize(ConfigurableApplicationContext applicationContext) {
|
|
|
|