application.properties
配置
#配置服务访问端口
server.port=8081
#配置服务名称
server.servlet.context-path=/hello-world
用来修改默认的端口
拼接全局的路径
http://localhost:8081/hello-world/h1/h2/1
如何使用yaml配置文件替代application.properties文件
server:
port: 8080
servlet:
context-path: /hello