Cannot use Apache Commons FileUpload with Spring Boot multipart.resolve-lazily
问题 I'm building a REST API using Spring Boot framework. There is one endpoint where users will be able to upload a large file (~1GB). I'm using Streaming API from Apache Commons FileUpload. I only want to enable streaming only at that endpoint. Therefore, I configure my Spring Boot as follow: spring.servlet.multipart.enabled = true spring.servlet.multipart.resolve-lazily = true spring.servlet.multipart.max-file-size = 2GB spring.servlet.multipart.max-request-size = 2GB And here is my endpoint: