org.springframework.web.multipart.MaxUploadSizeExceededException: 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默认的承受的大小 (默认是1MB)
解决:
在application.properties配置文件中配置上传的文件最大限制