在用jquery上传文件时,contentType设置为"multipart/form-data",但服务端报错
java.lang.RuntimeException: java.io.IOException: Separation boundary was not specified
at com.jfinal.upload.MultipartRequest.wrapMultipartRequest(MultipartRequest.java:126)
at com.jfinal.upload.MultipartRequest.<init>(MultipartRequest.java:68)
at com.jfinal.core.Controller.getFiles(Controller.java:815)
at com.jfinal.core.Controller.getFile(Controller.java:825)
at com.jz.controller.HaomaController.saveUserHaomaInfo(HaomaController.java:83)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.jfinal.aop.Invocation.invoke(Invocation.java:73)
at com.jfinal.core.ActionHandler.handle(ActionHandler.java:78)
at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:73)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:498)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.ap