在tomcat manager页面上传war包时,刚点下上传按钮,页面就显示断开连接。
去日志里一看:
严重: HTMLManager: FAIL - Deploy Upload Failed, Exception: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (60497961) exceeds the configured maximum (52428800)
java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (60497961) exceeds the configured maximum (52428800)
war包的大小超出限制了
解决:
修改${tomcat_root}/webapps/manager/WEB-INF/web.xml中的
<multipart-config>
<!-- 50MB max -->
<max-file-size>52428800</max-file-size>