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