淺析 @PathVariable 和 @RequestParam

首先 上兩個地址:java 地址① http://localhost:8989/SSSP/emps?pageNo=2 app 地址② http://localhost:8989/SSSP/emp/7 ui 若是想獲取地址①中的 pageNo的值 ‘2’ ,則使用  @RequestParam ,url 若是想獲取地址②中的 emp/7 中的 ‘7 ’   則使用 @PathVariablespa
相關文章
相關標籤/搜索