在我的SpringBoot2.0.0.M6 application.properties中,我添加了以下几行: spring.http.multipart.max-file-size=100MBspring.http.multipart.max-request-size=100MB 但是,当我尝试将21MB文件上传到我的RestController时,它失败了,出现了以下异常: MaximumSizeLimitExceededException: the request was rej
我有一个spring引导应用程序,其中控制器正在使用内容类型为"multipart/form-data“的post请求。此代码在图像大小小于1MB时工作,但如果我上传任何大小超过1MB的图像,我总是会遇到此错误。此错误仅在生产环境中出现。在本地系统中,这工作得非常好。错误 ? 我已经在springboot应用程序属性文件中增加了multipart file max size的默认大小。#Spring max size upload
spr
我在父pom中尝试了类似spring引导的模块,现在我遇到了错误。:spring-boot-dependencies:pom:2.0.0.M6 in https://repo.maven.apache.org/maven2 was cached in the local:spring-boot-dependencies:pom:2.0.0.M6 in https://repo.maven.apache.org/