旋转的钢笔 2015-09-17 00:52 采纳率: 54.5%
浏览 4037
已采纳

velocity页面怎么获取List<Map>中的值,就是获取list集合中的值

@RequestMapping("my-team")
public String myTeam(ModelMap model){
this.setLayout(LayoutType.STUDENT);
String employeeCode= CurrentUserUtil.getCurrentUserName();
List list=employeePhotoService.queryEmployPhoto(employeeCode);
model.put("list", list);
System.out.println(list);
return "jquery-orgchart-master/demo/myteam";
}

  • 写回答

1条回答 默认 最新

  • restart101225 2017-12-13 06:46
    关注

    #foreach($type in $list)
    $!type.id
    $!type.taskType
    $!type.heartbeatRate
    #end

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 已采纳回答 10月31日