微服务下取不到bootstrap.yml影响版本5.13.boot2
This commit is contained in:
@@ -37,7 +37,9 @@ public class PropertiesUtils {
|
|||||||
// 默认加载的文件,可通过继承覆盖(若有相同Key,优先加载后面的)
|
// 默认加载的文件,可通过继承覆盖(若有相同Key,优先加载后面的)
|
||||||
public static final String[] DEFAULT_CONFIG_FILE = new String[]{
|
public static final String[] DEFAULT_CONFIG_FILE = new String[]{
|
||||||
"classpath:config/application.yml", "classpath:application.yml",
|
"classpath:config/application.yml", "classpath:application.yml",
|
||||||
|
"classpath:config/bootstrap.yml", "classpath:bootstrap.yml",
|
||||||
"file:config/application.yml", "file:application.yml",
|
"file:config/application.yml", "file:application.yml",
|
||||||
|
"file:config/bootstrap.yml", "file:bootstrap.yml",
|
||||||
};
|
};
|
||||||
|
|
||||||
private static final Logger logger = PropertiesUtils.initLogger();
|
private static final Logger logger = PropertiesUtils.initLogger();
|
||||||
|
|||||||
Reference in New Issue
Block a user