方法一: 在resources里面找到 application.properties文件 输入: server.port=8081 方法二:在resources里面找到 application.ymal文件 输入: