Java上传下载文件

前端来讲用axios下载:

请求方式:

export function exportUser(jsonObj) {//导出用户数据
  return fetch({
    url: '/api/frontUser/user/exportUser',
    method: 'post',
    params: jsonObj,
    responseType: 'arraybuffer', // 
  });
}

转自:https://blog.csdn.net/happyheng/article/details/53687769

猜你喜欢

转载自blog.csdn.net/tangcc110/article/details/83651674