Maximum upload size exceeded
时间: 2023-08-17 09:14:05 浏览: 360
解决File size limit exceeded 错误的方法
回答: "Maximum upload size exceeded"错误表示上传的文件大小超过了系统的最大限制。根据引用\[1\]和引用\[2\]的信息,Spring Boot默认的单个文件上传大小限制是1MB,多个文件上传总大小限制是10MB。如果要修改上传文件的大小限制,可以在application.yml文件中进行配置,如引用\[3\]所示。在该文件中,可以通过设置`spring.servlet.multipart.max-file-size`来修改单个文件的最大限制,通过设置`spring.servlet.multipart.max-request-size`来修改多个文件的最大限制。请注意,这些值需要与文件大小的单位相匹配,例如MB或KB。
#### 引用[.reference_title]
- *1* [MaxUploadSizeExceededException: Maximum upload size exceeded](https://blog.csdn.net/tec_1535/article/details/114266579)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [Maximum upload size exceeded;nested exception is java.lang.IllegalStateException](https://blog.csdn.net/weixin_45151960/article/details/127900360)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文