我的需求是
从后台数据库中查询出数据,要在前台的spreadJS进行绑定显示,之后生成csv。现在的疑惑是如何将后台controller层取出的数据绑定到spreadJS。请各位大神帮下忙,谢谢
controller层代码如下:
@RequestMapping(value = "", method = RequestMethod.GET)
public String topMenu(Model model) {
Users users = searchService.findOne("1234");
List<Role> roleList = searchService.findRoleList("1234");
users.setRoles(roleList);
UpdateForm form = new UpdateForm();
beanMapper.map(users, form);
model.addAttribute("form", form);
return "top/menu";
}
|
|