1、配置文件的使用 修改配置方式1:src\main\resources\application.properties #修改端口号 server.port=8081 #端口号后需额外添加字符 server.servlet.context-path=/zed 访问:http://localhost:8081/zed/hello @RestController public class HelloWorld { @GetMapping("/hello") public String say()