@RequestParam和@PathVariable的區別和使用

@RequestParam和@PathVariable的區別和使用 請求路徑上的區別:很明顯一個是 https:url ?鍵值對,一個是https:url /參數,區別很明顯 @PathVariable主要用於接收http://host:port/path/{參數值}數據。 @RequestParam主要用於接收http://host:port/path?參數名=參數值數據,這裏後面也可以不跟參數
相關文章
相關標籤/搜索