由LOG_PATH_IS_UNDEFINED/LOG_HOME_IS_UNDEFINED引发的问题
使用 SpringBoot + LogBack 的项目在程序启动之后总是在项目根目录产生一个 LOG_PATH_IS_UNDEFINED 的文件夹,原因是 Spring 容器在 Logback 初始化之后设置 LOG_PATH ,所以在 logback-spring.xml 找不到 LOG_PATH ,但 bootstrap 配置文件由父 Spring ApplicationContext 加载,会在 Logback 初始化之前加载。但是在SpringBoot中默认是不支持bootstrap.properties属性文件的,需要引入SpringCloud的依赖。

https://www.cnblogs.com/lwh147/p/15333047.html
在spring体系中常用配置文件加载顺序:
- bootstrap.yml
- bootstrap.properties
- application.yml
- application.propertie

浙公网安备 33010602011771号