错误场景 在使用element的el-upload组件的时候,选择上传后报错 原因 经检查在el-upload的header属性里包含了中文 解决 1、误写的中文 去除请求头中的中文 2、需要中文 对中文进行编码 // 编码 encodeURIComponent(str) // 解码 decodeURIComponent(str) 后台接收 //编码 java.net.URLEncoder.encode(token