前端发送请求
后端代码
```java
@RequestMapping(value = "/testJson")
@ResponseBody
private SpringResult testJson(@RequestBody List<User> users){
for(User u:users){
System.out.println(u.getUserName());
}
return new SpringResult();
}
前端发送请求
后端代码
```java
@RequestMapping(value = "/testJson")
@ResponseBody
private SpringResult testJson(@RequestBody List<User> users){
for(User u:users){
System.out.println(u.getUserName());
}
return new SpringResult();
}