SpringBoot中的参数修改一般都是在application.properties下修改 配置文件路径: src/main/resources/application.properties 修改端口只需要加上 我这里更改成80端口 server.port=80 更改context-path server.servlet.context-path= /demo demo 为你想更改的映射名称,记住要加反斜杠/或者双右斜杠\\