var form = new FormData(document.getElementById("form"));
form.append('filez', 数据);
$.ajax({
url: '../../project/add',
type: 'post',
data: form,
contentType: false,
processData: false,
success: function (res) {
if (res.code == 0) {
project = res.data;
...........
后台
@LogAnnotation
@RequestMapping(value = "/add", headers = "content-type=multipart/form-data")
public BaseRes add(ProjectDTO projectDTO
, @RequestParam(value = "file[]", required = false) MultipartFile[] files, @RequestParam(value = "filez", required = false) MultipartFile filez, HttpServletRequest request, String token) throws Exception {
BaseRes res = redisService.getTokenExist(session, token);
Integer code = res.getCode();
if (code == 0) {
User