不知不觉,新的项目已经将springboot升级为2.0版本了.刚开始没有配置server.contextpath,默认的“/”,然后今天放到自己的服务器上,所以就要规范名称。  结果,失败了,无论我怎么配置,总是在启动后日志打印说 :path:"" 、

正确姿势:server.servlet.context-path:"/url"

 

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

相关文章: