上传文件太大的问题

Maximum upload size exceeded; nested exception is java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.impl.SizeLimitExceededException: the request was rejected because its size (12609717) exceeds the configured maximum (10485760)

 。。。。

1.

tomcat配置:server.xml

2.

 

3.spring 下的:

servlet:
    multipart:
      max-request-size: 1500MB
      max-file-size: 1500MB

 

这几个都试了一下,最后好使了。

 

 

@

posted @ 2020-11-02 17:14  DarGi  阅读(184)  评论(0编辑  收藏  举报