springboot yml常用配置

在项目中所有的请求前面加上指定前缀

1
2
3
server:
servlet:
context-path: /competition

加上上面的代码,请求url http://localhost:8080/login变为http://localhost:8080/competition/login