1 Spring Boot项目全局的配置文件
1.1 命名
1: application.properties
2: application.yml
一般命名为application.properties
1.2 位置
1: 在resources目录下
2: 类路径下的/config下
一般放在resources下。
2 修改配置
2.1 修改tomcat的端口
#Tomcat端口
server.port=8081
3 所有的配置
官方文档:https://docs.spring.io/spring-boot/docs/1.5.9.RELEASE/reference/htmlsingle/#common-application-properties