其他分享
首页 > 其他分享> > 012 The field file exceeds its maximum permitted size of 1048576 bytes.

012 The field file exceeds its maximum permitted size of 1048576 bytes.

作者:互联网

上传图片时会出现该错误

 

 

 解决办法:

Spring Boot 1.3.x之前

multipart.maxFileSize=100Mb
multipart.maxRequestSize=200Mb

Spring Boot 1.4.x

spring.http.multipart.maxFileSize=100Mb
spring.http.multipart.maxRequestSize=200Mb

 Spring Boot 2.0之后

spring.servlet.multipart.max-file-size=100MB
spring.servlet.multipart.max-request-size=200MB

 

标签:200Mb,spring,1048576,maximum,bytes,multipart,Boot,Spring,size
来源: https://www.cnblogs.com/Zhangzhiq/p/16348637.html