问题如上。贴出代码
@RequestMapping(value = "/sk/api/users", method = RequestMethod.POST)
public void entitys(@RequestBody List users, HttpServletRequest request, HttpServletResponse response) {
System.out.println("获取到" + users.size() + "个用户");
for(User user : users){
System.out.println(user);
}
writeJson(response, "ok");
}
问怎么把通过ajax发出的json转换成List的,里面的逻辑是什么