当前位置:Gxlcms >
数据库问题 >
Caused by: java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 1048576 bytes.
Caused by: java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 1048576 bytes.
时间:2021-07-01 10:21:17
帮助过:6人阅读
122
)
at org.springframework.web.multipart.support.StandardMultipartHttpServletRequest.parseRequest(StandardMultipartHttpServletRequest.java:115
)
at org.springframework.web.multipart.support.StandardMultipartHttpServletRequest.<init>(StandardMultipartHttpServletRequest.java:88
)
at org.springframework.web.multipart.support.StandardServletMultipartResolver.resolveMultipart(StandardServletMultipartResolver.java:87
)
at org.springframework.web.servlet.DispatcherServlet.checkMultipart(DispatcherServlet.java:1178
)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1012
)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943
)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006
)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909
)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:660
)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883
)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741
)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231
)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166
)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53
)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193
)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166
)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100
)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119
)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193
)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166
)
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93
)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119
)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193
)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166
)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201
)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119
)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193
)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166
)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202
)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96
)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:526
)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139
)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92
)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74
)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343
)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408
)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66
)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861
)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1579
)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49
)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624
)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61
)
at java.lang.Thread.run(Thread.java:748
)
Caused by: java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 1048576
bytes.
at org.apache.catalina.connector.Request.parseParts(Request.java:2912
)
at org.apache.catalina.connector.Request.getParts(Request.java:2770
)
at org.apache.catalina.connector.RequestFacade.getParts(RequestFacade.java:1098
)
at org.springframework.web.multipart.support.StandardMultipartHttpServletRequest.parseRequest(StandardMultipartHttpServletRequest.java:95
)
... 43
more
Caused by: org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 1048576
bytes.
at org.apache.tomcat.util.http.fileupload.FileUploadBase$FileItemIteratorImpl$FileItemStreamImpl$1.raiseError(FileUploadBase.java:633
)
at org.apache.tomcat.util.http.fileupload.util.LimitedInputStream.checkLimit(LimitedInputStream.java:76
)
at org.apache.tomcat.util.http.fileupload.util.LimitedInputStream.read(LimitedInputStream.java:135
)
at java.io.FilterInputStream.read(FilterInputStream.java:107
)
at org.apache.tomcat.util.http.fileupload.util.Streams.copy(Streams.java:98
)
at org.apache.tomcat.util.http.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:294
)
at org.apache.catalina.connector.Request.parseParts(Request.java:2868
)
... 46 more
原因:
tomcat现在了上传文件大小
解决方案:
在application.properties文件中添加
# 最大上传单个文件大小:默认1M
spring.servlet.multipart.max-file-size=1024MB
# 最大置总上传的数据大小 :默认10M
spring.servlet.multipart.max-request-size=1024MB
Caused by: java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 1048576 bytes.
标签:OLE ali NPU style har stand int RKE sorl