已解决:spring boot报错SizeLimitExceededException

qingwuyun-banner.jpeg

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/
赞(0)
未经允许禁止转载:优米格 » 已解决:spring boot报错SizeLimitExceededException

评论 抢沙发

合作&反馈&投稿

商务合作、问题反馈、投稿,欢迎联系

广告合作侵权联系