上传时出现了The field file exceeds its maximum permitted size of 1048576 bytes.错误
需要设置以下两个参数
multipart.maxFileSize
multipart.maxRequestSize
Spring Boot 1.3.x或者之前
multipart.maxFileSize=100Mb
multipart.maxRequestSize=1000Mb
Spring Boot 1.4.x或者之后
spring.http.multipart.maxFileSize=100Mb
spring.http.multipart.maxRequestSize=1000Mb
spring boot 上传文件大小限制
猜你喜欢
转载自gjp014.iteye.com/blog/2394336
今日推荐
周排行