Disable spring boot multipart upload by controller
<p>I am using spring boot for uploading files. The files sizes are usually about 2GB and we cannot use the default spring boot <code>StandardServletMultipartResolver</code> or <code>CommonsMultipartResolver</code> since the server have limited resource (disk space) or memory for buffering. So we would like to get the file inputsteam and store the file directly to the cloud storage. </p>

<p>I know spring boot has the <code>multipart.enabled</code> property so I can set it to false to skip the spring <code>MultipartResolver</code>. But this disables multipart globally. Does any one know if there is a way to disable multipart by controller/method? </p>