017-12-07 11:01:18.148 ERROR 9458 --- [http-nio-28080-exec-9] o.a.c.c.C.[Tomcat].[localhost] : Exception Processing ErrorPage[errorCode=0, location=/error]
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is java.io.IOException: The temporary upload location [/tmp/tomcat.5422911029087836936.28080/work/Tomcat/localhost/ROOT] is not valid
该异常产生的原因是因为,我们做上传文件的时候。spring需要先把我们的文件缓存在一个地方,所以spring检测不到有文件夹时,自己就去创建文件夹,没有文件夹的权限导致的。
最简单的解决方案,重启下边界服务
或者配置一下缓存文件的位置