默认配置文件
当我们创建一个springboot项目的时候,系统默认会为我们在src/main/Java/resources目录下创建一个application.properties。
springboot如何同时加载多个配置文件
1、新建配置文件名格式为:application-{profile}.properties,其中{profile}对应你的环境标识
2 .在application.properties中添加spring.profiles.active = test,database
#加载多个配置文件,系统加载了application.properties application-database.properties application-test.properties 三个配置文件
spring.profiles.active = test,database
https://blog.csdn.net/hbiao68/article/details/87360551