配置文件格式
在 resources 下创建 application.yml
application.yml
server:
port: 80
设置为工程的配置文件
Project Settings --> Facets --> Customize Spring Boot

SpringBoot配置文件加载顺序(了解)
application.properties > application.yml application.yaml
在 resources 下创建 application.yml
application.yml
server:
port: 80
设置为工程的配置文件
Project Settings --> Facets --> Customize Spring Boot

SpringBoot配置文件加载顺序(了解)
application.properties > application.yml application.yaml