Linux springboot upload file error

Alibaba cloud Q & A 2022-02-13 06:45:56 阅读数:371

linux springboot upload file error

Linux springboot Upload file error :java.nio.file.NoSuchFileException

Take the answer 1:

Hello! , stay applicaiton.yml( Add configuration in :

spring: servlet: multipart: location: /data/tmp

After manually specifying the directory , You must ensure that the directory exists , And have read and write permission , Create the directory mkdir -p /data/tmp

copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you.