springboot yml常用配置 Posted on 2022-01-11 In 配置 Views: 在项目中所有的请求前面加上指定前缀123server: servlet: context-path: /competition 加上上面的代码,请求url http://localhost:8080/login变为http://localhost:8080/competition/login