异常示例:
The temporary upload location [/tmp/tomcat .8614765871571973022.8080/work/Tomcat/localhost/ROOT] is not valid at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)
尝试了网上一大堆,都不行.
包括指定:spring.servlet.multipart.location=/opt/temp
启动时候,创建的临时路径仍旧是在/tmp下面.
正确的方式在在启动的额环境变量里面添加参数:-Djava.io.tmpdir = /xxx