Closed
Description
版本号:2.1.0 - 2.2.0 均有出现
问题描述: 因linux 服务器 定时清除临时文件夹导致的上传服务报错 .centos 服务器部署超过10天,上传文件 报错:The temporary upload location is not valid.建议在启动的时候用bean指定生成临时文件夹.
截图&代码:
org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request; nested exception is java.io.IOException: The temporary upload location [/tmp/tomcat.6239989728636105816.19530/work/Tomcat/localhost/ROOT] is not valid
友情提示: 未按格式要求发帖,会直接删掉。
Activity
zhangdaiscott commentedon Jun 16, 2020
prod配置文件中加入以下代码,以及需要发布到linux系统的时候
Sean-214 commentedon Jun 19, 2020
@zhangdaiscott Spring Boot 从 2.1.4.RELEASE 版本开始已修复,建议更新Spring Boot版本
参考:
https://docs.spring.io/spring-boot/docs/2.1.3.RELEASE/reference/htmlsingle/#boot-features-embedded-container
spring-projects/spring-boot#9616 (comment)