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
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
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。