前台:<form action="/bxasafety/gov/user/query/index" method="post" enctype="multipart/form-data">
id:<input type="text" name="id1"/>
name <input type="text" name="name1"/>
file <input type="file" name="file"/>
<input type="submit" value="formsubmit">
</form>
后台
@At("/query/?")
@Ok("beetl:/aef/user/hello.html${p.mode == 'ajax' ? '#dataTable' :''}")
@AdaptBy(type = UploadAdaptor.class, args = { "${app.root}/WEB-INF/tmp","8192","UTF-8","10000"})
public Object query(@Param("..")NutMap record,HttpServletRequest req,HttpSession sess){
System.out.println(record);
}
报错了
java.lang.String cannot be cast to org.nutz.lang.util.NutMap
我怎么写才能正确接收表单数据和附件。