SpringBoot默认上传文件大小不能超过1MB,超过之后会报以下异常: org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 1048576 bytes. at org.apache.tomcat.util.http.fileupload.FileUploadBase$F
参考原文:https://blog.csdn.net/awmw74520/article/details/70230591 Spring Boot 1.3.x或者之前 multipart.maxFileSize=100Mbmultipart.maxRequestSize=1000Mb Spring Boot 1.4.x spring.http.multipart.maxFileSize=100Mbspring.http.multipart.maxRequestSize=1000Mb Spring