参考:SpringBoot项目上传大文件报错the request was rejected because its size exceeds the configured maximum 1048576
解决方法:
在application.yml中添加配置
spring:
servlet:
multipart:
# 单个文件最大100MB
max-file-size: 100MB
# 发送的请求最大500MB
max-request-size: 500MB
参考:SpringBoot项目上传大文件报错the request was rejected because its size exceeds the configured maximum 1048576
解决方法:
在application.yml中添加配置
spring:
servlet:
multipart:
# 单个文件最大100MB
max-file-size: 100MB
# 发送的请求最大500MB
max-request-size: 500MB
让时间为你证明