1.上传文件超出默认大小限制
org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 1048576 bytes.
在application.yml配置文件中配置上传文件限制
spring:
servlet:
multipart:
max-file-size: 10MB
max-request-size: 100MB
Tips:当100MB写成100mb时,idea中会报错,需要改成大写