在application.yml的配置文件中修改 我们修改了端口号,还配置的项目名称 server: port: 8090 context-path: /lizhen123 具体如图所示 查看效果 相关文章: