Browse Source

Restore matchIfMissing attribute

Restore accidentally deleted `matchIfMissing` attribute.

See gh-43704
pull/43739/head
Phillip Webb 12 months ago
parent
commit
bd3663748b
  1. 2
      spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.java

2
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.java

@ -170,7 +170,7 @@ public class WebMvcAutoConfiguration { @@ -170,7 +170,7 @@ public class WebMvcAutoConfiguration {
@Bean
@ConditionalOnMissingBean(FormContentFilter.class)
@ConditionalOnBooleanProperty("spring.mvc.formcontent.filter.enabled")
@ConditionalOnBooleanProperty(name = "spring.mvc.formcontent.filter.enabled", matchIfMissing = true)
public OrderedFormContentFilter formContentFilter() {
return new OrderedFormContentFilter();
}

Loading…
Cancel
Save