写一个文件上传接口,报了如下错误:
Failed to parse multipart servlet request; nested exception is java.io.IOException: The temporary upload location [C:\Users\s0661\AppData\Local\Temp\tomcat.7304072307918184638.9997\work\Tomcat\localhost\ROOT] is not vali
这个博客解释得很清楚 https://www.cnblogs.com/756623607-zhang/p/9721761.html
我做了tomcat配置有时还是会报入上错误,直接在C:\Users\s0661\AppData\Local\Temp\tomcat.7304072307918184638.9997\work\Tomcat\localhost\目录下创建一个ROOT文件夹即可[机智]。
原文地址:https://www.cnblogs.com/mxh-java/p/12354293.html
时间: 2024-10-13 21:23:31