6.4 SpringBoot的核心:profile配置

6.4 profile配置
1.Profile是Spring用来针对不同环境的不同配置做出的支持
2.profile的文件格式为application-{profile}.properties eg. application.dev.properties
3.通过在application.properties中设置spring.profiles.active=pord 来指定活动的Profile
举例:
##控制使用哪个配置
spring:
profiles:
active: dev