java ssm框架 怎样将后台集合传递到前端@responsebody

2025-04-03 22:43:26
推荐回答(1个)
回答1:

java类

RequestMapping("/student")
public String search(Model m){
list = studentservice.selectList();
m.addAttribute("go",list);
return "student";
}

前台student.jsp

${d}