error信息:
java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (55916489) exceeds the configured maximum (52428800)
原因:war包超出了上线50MB
修改方法:
tomcat/webapps/manager/WEB-INF/web.xml里面
- <multipart-config>
- <!-- 50MB max -->
- <max-file-size>52428800</max-file-size>
- <max-request-size>52428800</max-request-size>
- <file-size-threshold>0</file-size-threshold>
- </multipart-config>
- </servlet>
- <servlet>
- 默认是50MB,修改其大小,重启服务即可。