diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/webflux/HttpHandlerAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/webflux/HttpHandlerAutoConfiguration.java index d3e0dce6d6..6cc63f333d 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/webflux/HttpHandlerAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/webflux/HttpHandlerAutoConfiguration.java @@ -125,10 +125,7 @@ public class HttpHandlerAutoConfiguration { strategiesBuilder.build()); WebHttpHandlerBuilder builder = WebHttpHandlerBuilder.webHandler(webHandler) .sessionManager(this.webSessionManager); - if (this.webFilters != null) { - builder.filters( - this.webFilters.toArray(new WebFilter[this.webFilters.size()])); - } + builder.filters(this.webFilters); return builder.build(); }