@At
@Ok("json")
@SLog(tag = "复制", msg = "名称:${args[1].name}")
@RequiresPermissions("manager.list.copy")
public Object copy(String[] ids, HttpServletRequest req) {
req.setAttribute("name", newinfo.getName());
args的下标为1,对应的req,代码内部也设置了name,但怎么还是抛找不到name的异常呢?奇怪了
org.nutz.lang.FailToGetValueException: Fail to get value for [org.apache.shiro.web.servlet.ShiroHttpServletRequest]->[name]
at org.nutz.lang.Mirror.makeGetValueException(Mirror.java:763)
at org.nutz.lang.Mirror.getValue(Mirror.java:826)
at org.nutz.el.opt.object.AccessOpt.calculate(AccessOpt.java:46)
at org.nutz.el.arithmetic.RPN.calculate(RPN.java:55)
at org.nutz.el.arithmetic.RPN.calculate(RPN.java:38)
at org.nutz.el.El.eval(El.java:30)
at cn.wjdc.common.services.log.SLogAopInterceptor.doLog(SLogAopInterceptor.java:100)