spring post list对象

前端发送请求

后端代码


```java
@RequestMapping(value = "/testJson")
@ResponseBody
private SpringResult testJson(@RequestBody List<User> users){
    for(User u:users){
        System.out.println(u.getUserName());
    }
    return new SpringResult();
}

发布了16 篇原创文章 · 获赞 0 · 访问量 3991

猜你喜欢

转载自blog.csdn.net/pcjk8866/article/details/104683509