首页 > 其他分享> > SpringBoot项目上传文件报错:the request was rejected because its size (53030696) exceeds the configured maxim
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-request-size: 200MB
然后就没报错了。
。
标签:because,SpringBoot,200MB,max,报错,multipart,上传,size 来源: https://www.cnblogs.com/spll/p/15916917.html