返回顶部

在springBoot项目配置项目的访问路径的时候 server.context-path不起作用的原因

 server.context-path不起作用的原因

 

在SpringBoot2.0.2版本之前  使用这个设置项目的访问路径是使用这个参数    例如:server.context-path =/boot

server.context-path =/boot

  

 但是在springBoot的版本升级到2.0.2版本之后 这个参数就不起作用了,改变成了 server.servlet.context-path=/boot才会起作用。

server.servlet.context-path=/boot

  

posted @ 2020-09-16 17:12  fen斗  阅读(2567)  评论(0编辑  收藏  举报