SpringBoot the file upload size is too large problem (solution)

The following error message (key):

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

Solutions (mainly modify application.yml corresponding configuration):
If you feel that 300MB is not enough, you can go up-regulated.

spring:
  http:
    multipart:
      enabled: true
      max-file-size: 300MB 
      max-request-size: 300MB

 

Guess you like

Origin www.cnblogs.com/youcong/p/11568282.html