let formData = new FormData();
formData.append("file", file);
let config = {
headers: {
'Content-Type': 'multipart/form-data'
}
};
axios.post("/uploadFile", formData, config).then(
(data)=>{
});
后端接收参数:@PathVariable("file") MultipartFile file
网友评论