
java.nio.file.NoSuchFileException: /tmp/undertowXXXXXX报错问题记录解决方案
java.nio.file.NoSuchFileException: /tmp/undertowXXXXXX报错问题记录解决方案。步骤一,spring微服务的配置文件添加。步骤二,修改dockerfile。步骤三,修改创建临时文件的代码。
·
java.nio.file.NoSuchFileException: /tmp/undertowXXXXXX报错问题记录解决方案
解决方案
步骤一,spring微服务的配置文件添加
yml文件配置:
spring:
servlet:
multipart:
location: /data/upload # 文件上传的临时目录,此目录需要再linux系统中存在
linux服务器: # 若不存在需要创建
创建该目录 mkdir -p /data/upload
步骤二,修改dockerfile
步骤三,修改创建临时文件的代码
更多推荐
所有评论(0)