@Configuration @ConditionalOnClass(value={, , }) @EnableConfigurationProperties(value=MultipartProperties.class) public class MultipartAutoConfiguration extends Object
Auto-configuration
for multi-part uploads. Adds a
StandardServletMultipartResolver
if none is present, and adds a
multipartConfigElement
if none is
otherwise defined. The EmbeddedWebApplicationContext
will associate the
MultipartConfigElement
bean to any Servlet
beans.
The javax.servlet.MultipartConfigElement
is a Servlet API that's used to
configure how the container handles file uploads. By defaultConstructor and Description |
---|
MultipartAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
MultipartConfigElement |
multipartConfigElement() |
StandardServletMultipartResolver |
multipartResolver() |
@Bean @ConditionalOnMissingBean public MultipartConfigElement multipartConfigElement()
@Bean @ConditionalOnMissingBean(value=) public StandardServletMultipartResolver multipartResolver()
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.