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
在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
胖椿阅读 1.8k
kexb赞 3阅读 961
Pursuer丶赞 3阅读 8.8k
macrozheng赞 2阅读 478
码猿技术专栏赞 1阅读 562
Pursuer丶阅读 3.3k评论 2
Pursuer丶阅读 3.1k
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。