最近接到一些站长的反馈,说论坛上传附件,到100%的时候自己取消上传了.经查是附件索引表pre_forum_attachment表的aid字段自增值出现了问题,导致程序逻辑返回的aid值实际为一个MySQL 1062 报错:来自网页的消息—————————<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
异常代码: 1.the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is true 2.The current request is not a multipart request 先看 spring mvc 配置上传文件处理器解析 没感觉有什么问题. 跟源码: 这里有一个双重判断 必须 请求方式是POST 加 request 的contentType 必