上传文件,后台报错
Failed to parse multipart servlet request; nested exception is java.io.IOException:
The temporary upload location [/tmp/tomcat.xxxx.xx/work/Tomcat/localhost/ROOT] is not valid
检查发现 /tmp 目录下确实没有 tomcat.xxxx.xx
快速解决办法:在 /tmp目录下手动创建 mkidr -p tomcat.xxxx.xx/work/Tomcat/localhost/ROOT
再次测试上传OK
也可以参考 https://blog.csdn.net/PatPeng/article/details/90174597