写一个文件上传接口,报了如下错误:
Failed to parse multipart servlet request; nested exception is java.io.IOException: The temporary upload location [C:Userss0661AppDataLocalTemp omcat.7304072307918184638.9997workTomcatlocalhostROOT] is not vali
这个博客解释得很清楚 https://www.cnblogs.com/756623607-zhang/p/9721761.html
我做了tomcat配置有时还是会报入上错误,直接在C:Userss0661AppDataLocalTemp omcat.7304072307918184638.9997workTomcatlocalhost目录下创建一个ROOT文件夹即可[机智]。