今天想要上传个图片在web上,
结果输入MultipartFile picture参数运行tomcat时报错,The current request is not a multipart request。
常见的解决方案有以下几种
1.在form表单中增加enctype="multipart/form-data"段
2.在请求头中加入
3.百度时有的网友说将MultipartFile参数放到第一个可以解决问题。
今天想要上传个图片在web上,
结果输入MultipartFile picture参数运行tomcat时报错,The current request is not a multipart request。
常见的解决方案有以下几种
1.在form表单中增加enctype="multipart/form-data"段
2.在请求头中加入
3.百度时有的网友说将MultipartFile参数放到第一个可以解决问题。