Spring Boot2.0之后的版本配置修改为: spring.servlet.multipart.max-file-size = 10MB spring.servlet.multipart.max-request-size=100MB