首页 > TAG信息列表 > 200MB
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.SpringBoot项目上传文件报错:the request was rejected because its size (53030696) exceeds the configured maxim
借鉴博客:https://blog.csdn.net/qq_33243189/article/details/89631495 multipart的上传文件配置默认是10M大小解决办法通过设置application.yml文件重新配置multipart的上传大小: spring: servlet: multipart: enabled: true max-file-size: 200MB max-r