diff --git a/config/src/main/java/org/springframework/security/config/annotation/web/reactive/WebFluxSecurityConfiguration.java b/config/src/main/java/org/springframework/security/config/annotation/web/reactive/WebFluxSecurityConfiguration.java index 4469756a8a..f1e50a6dde 100644 --- a/config/src/main/java/org/springframework/security/config/annotation/web/reactive/WebFluxSecurityConfiguration.java +++ b/config/src/main/java/org/springframework/security/config/annotation/web/reactive/WebFluxSecurityConfiguration.java @@ -68,8 +68,7 @@ public class WebFluxSecurityConfiguration { .anyExchange().authenticated() .and() .httpBasic().and() - .formLogin().and() - .build(); + .formLogin(); return Arrays.asList(http.build()); } }