SpringBoot 1.x 2.x配置文件指定服务项目名

SpringBoot版本1.x    server.context-path=/demo

SpringBoot版本2.x    server.servlet.context-path=/demo

原文地址:https://www.cnblogs.com/chong-zuo3322/p/13273793.html