SpringApplication will load properties from application.properties files in the following locations and add them to the Spring Environment:
docs
A /config subdirectory of the current directory.
The current directory
A classpath /config package
The classpath root
SpringApplication will load properties from application.properties files in the following locations and add them to the Spring Environment: docs A /config subdirectory of the current directory. The current directory A classpath /config package The classpath root
所以只要在当前运行目录下,创建config目录,app;ication,properties 或者直接放在当前目录下,可以覆盖classpath里的properties文件。 RtConfig.properties 需要改下加载程序,这样也可以符合springboot的约定。logback.xml LOG_HOME无需指定盘符,会自动创建log目录。``