在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
您的资助是我最大的动力!
金额随意,欢迎来赏!