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