【发布时间】:2016-09-29 03:09:11
【问题描述】:
我正在使用 JHipster 开发基于 Spring Boot 和 AngularJS 的应用程序。 我的问题是如何设置上传文件的最大大小?
如果我尝试上传到大文件,我会在控制台中获取此信息:
DEBUG 11768 --- [io-8080-exec-10] c.a.app.aop.logging.LoggingAspect:
Enter: com.anuglarspring.app.web.rest.errors.ExceptionTranslator.processRuntimeException() with argument[s] =
[org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is java.lang.IllegalStateException:
org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 1048576 bytes.]
服务器响应状态为 500。
如何设置?
【问题讨论】:
标签: tomcat file-upload spring-boot jhipster