上传文件超过20MB之后会报错,如下:
org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (815792344) exceeds the configured maximum (10485760)
解决方法:
在application.properties文件添加配置
要用下面这个配置:
时间:2023-09-11 21:19:50
上传文件超过20MB之后会报错,如下:
org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (815792344) exceeds the configured maximum (10485760)
解决方法:
在application.properties文件添加配置
要用下面这个配置: