开发者社区 问答 正文

freemarker遍历list集合报错?报错

在页面上用

<#list userBasics as userBasic>
    ${userBasic.nickName}
</#list>



这样写报了下面一个错误

FreeMarker template error:
For "." left-hand operand: Expected a hash, but this has evaluated to a sequence (wrapper: f.t.SimpleSequence):

请接触过的大神指点指点

展开
收起
爱吃鱼的程序员 2020-06-08 19:58:54 1044 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    userBasic还是个list

    2020-06-08 19:59:13
    赞同 展开评论
问答分类:
问答地址: