mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Tweaks to config file intializer
This commit is contained in:
parent
9cf33c33fa
commit
e0d7fc2240
@ -41,7 +41,7 @@ import org.springframework.util.StringUtils;
|
||||
/**
|
||||
* {@link ApplicationContextInitializer} that configures the context environment by
|
||||
* 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:
|
||||
* <ul>
|
||||
* <li>classpath:</li>
|
||||
@ -55,7 +55,7 @@ import org.springframework.util.StringUtils;
|
||||
*
|
||||
* <p>
|
||||
* 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.
|
||||
*
|
||||
* <p>
|
||||
@ -78,7 +78,7 @@ public class ConfigFileApplicationContextInitializer implements
|
||||
|
||||
private String name = "${spring.config.name:application}";
|
||||
|
||||
private int order = Integer.MIN_VALUE;
|
||||
private int order = Integer.MIN_VALUE + 10;
|
||||
|
||||
@Override
|
||||
public void initialize(ConfigurableApplicationContext applicationContext) {
|
||||
|
Loading…
Reference in New Issue
Block a user