Maximum upload size exceeded; nested exception is java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.impl.FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 1048576 bytes.
由于tomcat限制了文件上传大小,在未设置的情况下,最大上传的文件为:1M
解决方法
在application.properties中添加如下设置: