I have a controller with a MultipartConfig annotation (a snippet of which is show below):
MultipartConfig
@RestController @RequestMapping(\"packages\") @MultipartCo
Application property is one option. Another option is
@Bean public MultipartConfigElement multipartConfigElement() { MultipartConfigFactory factory = new MultipartConfigFactory(); factory.setMaxFileSize("10MB"); factory.setMaxRequestSize("10MB"); return factory.createMultipartConfig(); }