@RequestParam和@PathVariable使用

以前一直用到@RequestParam和@PathVariable這兩個註解,今天有空就來總結一下前端 一.@RequestParam @RequestParam用於獲取參數,可獲取?username="sss"這種?後面的參數值java 方式一: //在url中輸入:localhost:8080/**/?userName=zhangsan //請求中包含username參數(如/requestp
相關文章
相關標籤/搜索