Springboot的配置
Springboot官方一共提供了17种配置方法
官方地址:https://docs.spring.io/spring-boot/docs/1.5.9.RELEASE/reference/htmlsingle/#boot-features-external-config
一共有17种配置,其中还有优先级的划分
其中常用的配置有四种:文件配置、环境变量、外部配置文件和命令行参数
文件配置
文件配置就是application.properties 和 application.yml 的配置
profile的配置
yml或者yaml配置
#设置默认启动
spring:
profiles