欢迎光临
感受代码之美

已解决: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/
转载请注明来源:四个空格 » 已解决:spring boot报错SizeLimitExceededException

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址