1. 程式人生 > >spring boot+gradle中server.context-path無法配置的問題

spring boot+gradle中server.context-path無法配置的問題

在這裡插入圖片描述 程式碼飄紅,錯誤提示為: Deprecated configuration property ‘server.context-path’ less… (Ctrl+F1) Inspection info: Checks Spring Boot application .properties configuration files. Highlights unresolved and deprecated configuration keys and invalid values. 解決方法:改為server.serverlet.context-path = “/user”