共计 236 个字符,预计需要花费 1 分钟才能阅读完成。
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
正文完