NutzCN Logo
问答 ActionFilter的使用
发布于 2557天前 作者 1037424761 1526 次浏览 复制 上一个帖子 下一个帖子
标签:
@Override
	public View match(ActionContext context) {
		String openid = Strings.sNull(context.getRequest().getSession().getAttribute("openid"));
		NutMap nutMap = cloudBindService.searchById(openid);
        if (nutMap.get("data")==null) {
        	return MyBeetlViewMarker.make(path);
        }
        JSONObject json = JSONObject.parseObject(nutMap.get("data").toString());
        context.getRequest().getSession().setAttribute("unitid",json.getString("unitid"));
		return null;
	}

我以前返回的是一个Beetl,我现在希望他跳转到一个Controller,请问该返回什么view

2 回复
添加回复
请先登陆
回到顶部