In SpringBoot project, configure spring.http.multipart.maxFileSize used to define the maximum file upload size.
However, unlike SpringBoot version, configuration on this one is not the same.
1, Spring Boot 1.3 version:
multipart.maxFileSize
2, Spring Boot 1.4 version and 1.5 version:
spring.http.multipart.maxFileSize
3, Spring Boot version 2.0:
spring.servlet.multipart.maxFileSize
Above, pay attention to the difference between versions 1.4, 1.5 and 2.0 versions, has been or will prompt invalid.
Attached application.yml configuration:
spring: servlet: multipart: enabled: true max-file-size: -1