the request was rejected because its size (10486494) exceeds the configured maximum (10485760)
时间: 2024-04-25 07:24:44 浏览: 78
根据引用\[1\]和引用\[2\]的内容,你遇到的问题是在SpringBoot项目中上传大文件时出现了错误,错误信息是"the request was rejected because its size exceeds the configured maximum 10485760"。这是因为SpringBoot默认配置中的multipart.max-file-size大小是1M,max-request-size默认大小是10M。根据引用\[3\]的解决方法,你可以在application.yml中添加配置来增加文件上传的大小限制。你可以将max-file-size设置为100MB,max-request-size设置为500MB来解决这个问题。
#### 引用[.reference_title]
- *1* *2* *3* [SpringBoot项目上传大文件报错the request was rejected because its size exceeds the configured maximum...](https://blog.csdn.net/zhang_m_h/article/details/123862814)[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 ]
阅读全文