spring-boot配置文件中server.context-path不起作用

当想在配置文件中更改项目的访问路径时,发现之前使用的 server.context-path已经不起作用了,如下图:

参考:https://my.oschina.net/u/3529605/blog/1831137

原文地址:https://www.cnblogs.com/Guhongying/p/10860420.html