L-- 2016-07-02 15:25 采纳率: 100%
浏览 2931
已采纳

为什么List<String>传到前台用EL表达式接收要转为字符串?

 public String selectAuthority() {
        try {
            modules = identityService.selectAuthority(pid);
            role = identityService.getRole(role.getId());
            operates = JSONUtil.serialize(identityService.getOperatesRoleIdAndModuleCode(role.getId(), pid));
        } catch (Exception e) {
            e.printStackTrace();
        }
        return SUCCESS;
    }
  • 写回答

3条回答 默认 最新

  • threenewbee 2016-07-02 15:34
    关注

    el表达式,既然是表达式,只能是字符串,二进制或者别的数据类型怎么能叫表达式呢,而且你这里返回值也是string。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?