问题:
Caused by: java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.impl.FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 1048576 bytes.
问题描述:springMVC使用的是内嵌的Tomcat,它上传文件的大小在spring web MVC这里限制为1M
问题解疑:在服务工程bootstrap.yml文件修改如下:
spring:
servlet:
multipart:
max-file-size: 50MB
max-request-size: 50MB