我的出現400,請求出現語法錯誤,求大神解答
http://localhost:8080/getUserList?users[0].name=ss&users[1].name=dd
@RequestMapping("/getUserList")
@ResponseBody
public?String?getUserList(UserListForm?userListForm){
????return?userListForm.toString();
}public?class?UserListForm?{
????private?List<User>?users;
????public?List<User>?getUsers()?{
????????return?users;
????}
????public?void?setUsers(List<User>?users)?{
????????this.users?=?users;
????}
2019-08-20
雖然有點晚,但是還是回答一下
應該是你的“[”“]”符號的問題,Tomcat版本高的URL不能使用
可以把“[”換成%5B,“]”換成%5D
2018-12-05
就看了極樂空間看;