Spring Controller 獲取請求參數的幾種方法

一、直接把表單的參數寫在Controller相應的方法的形參中,適用於get方式提交,不適用於post方式提交。若"Content-Type"=「application/x-www-form-urlencoded」,可用post提交web url形式:http://localhost:8080/SSMDemo/demo/addUser1?username=lixiaoxi&password=111
相關文章
相關標籤/搜索