【Spring Boot教程】(三):一些常用的yml配置

server:
  port: 8080  # 修改端口,别忘了前面的空格
  servlet:
    context-path: /xxx  # 指定项目名,即访问的时候要在8080后面加上/xxx,注意以斜杠开头

猜你喜欢

转载自blog.csdn.net/m0_46521785/article/details/114676906