Skip to content

Commit bd36637

Browse files
committed
Restore matchIfMissing attribute
Restore accidentally deleted `matchIfMissing` attribute. See gh-43704
1 parent b448d5e commit bd36637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public OrderedHiddenHttpMethodFilter hiddenHttpMethodFilter() {
170170

171171
@Bean
172172
@ConditionalOnMissingBean(FormContentFilter.class)
173-
@ConditionalOnBooleanProperty("spring.mvc.formcontent.filter.enabled")
173+
@ConditionalOnBooleanProperty(name = "spring.mvc.formcontent.filter.enabled", matchIfMissing = true)
174174
public OrderedFormContentFilter formContentFilter() {
175175
return new OrderedFormContentFilter();
176176
}

0 commit comments

Comments
 (0)