nutz
nutz copied to clipboard
nutz 的 mvc @At 接口 不支持 集合类型的参数
NameInjector的fromReqParam方法 public Object fromReqParam(HttpServletRequest req) { String[] params = req.getParameterValues(name); // 不为 null,那么必然要转换成日期 if (null != dfmt && params != null && params.length > 0) { Object o = Times.parseq(dfmt, params[0]); return Castors.me().castTo(o, type); } // 默认用转换器转换 return Castors.me().castTo(params, type); 这里应该使用params[0] }
集合类型用JsonAdaptor