mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Relax MultipartConfigElement condition
Allow MultipartConfigElement bean to be created even if a MultipartResolver bean has been defined by the user. Fixes gh-2538
This commit is contained in:
parent
4cac9d7382
commit
24fd4a1c7f
@ -56,8 +56,7 @@ public class MultipartAutoConfiguration {
|
||||
private MultipartProperties multipartProperties = new MultipartProperties();
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean(value = { MultipartConfigElement.class,
|
||||
MultipartResolver.class })
|
||||
@ConditionalOnMissingBean
|
||||
public MultipartConfigElement multipartConfigElement() {
|
||||
return this.multipartProperties.createMultipartConfig();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user