SpringBoot: configuration files can exist four locations

1. root directory project

2. config file under the root directory of the project, pay attention, can not be other file name not to collect on, gotta be config

The config file in the directory 3.classpath

4.classpath directory

Priority: 1> 2> 3> 4 

Published 126 original articles · won praise 7 · views 10000 +

Guess you like

Origin blog.csdn.net/qq_36880027/article/details/104381626