NutMap 一个够用吗?适配器用哪个合适?有没有同时接收表单+文件的接收示例的?
前端是wk的vue
@At("/demo")
@Ok("json")
// @AdaptBy(type = UploadAdaptor.class, args = {"ioc:imageUpload"})
@AdaptBy(type=WhaleAdaptor.class)
public Object demo(@Param("..") NutMap params, HttpServletRequest req, HttpSession session) throws Exception {
log.debug(params.getInt("hold"));
TempFile tf = (TempFile) params.get("photoFile");
log.debug(tf.getSize());
NutMap re = new NutMap();
re.put("ok", true);
return re;
}