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限制了文件上傳大小,在未設(shè)置的情況下,最大上傳的文件為:1M
解決方法
在application.properties中添加如下設(shè)置: