已解决:spring boot报错SizeLimitExceededException

spring.jpg

错误

spring boot报错:

org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (71401393) exceeds the configured maximum (10485760)

解决

spring:
  servlet:
    multipart:
      max-file-size: 1000MB
      max-request-size: 1000MB

参考文章:

  1. https://spring.io/guides/gs/uploading-files/
© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容