springboot升级为2.0版本, server.context-path不生效

新的项目已经将springboot升级为2.0版本了

刚开始没有配置server.contextpath,默认的“/”,然后今天放到自己的服务器上,所以就要规范名称。 

 结果,失败了,无论我怎么配置,总是在启动后日志打印说 :path:"" 、

正确方式:

server.servlet.context-path:"/url"


posted @ 2019-02-19 10:09  柚子=_=  阅读(427)  评论(0编辑  收藏  举报