java.lang.ClassCastException:
org.springframework.security.wrapper.SavedRequestAwareWrapper
cannot be cast to org.springframework.web.multipart.MultipartHttpServletRequest
$.ajax({ type:'post', url:"", data:$("#myform").serialize(), cache:false, dataType:'json', error:function(request){ alert("Connection error"+request); }, success:function(data){ if(data.success){ }else{ } } });
问题在于:ajax无法提交multipart/form-data 表单
改成:$('#myform).ajaxSubmit()解决了。
转载地址:http://www.tuxi.com.cn/viewcsdn/39206/392060096.html