springboot升级到2.0后,context-path配置不起作用,改成了: server.servlet.context-path=/projname 转载于:https://www.cnblogs.com/modou/p/10314256.html