The Javadoc of AbstractFilterRegistrationBean#setDispatcherTypes mistakenly claims that the dispatcher types will be deduced from DynamicRegistrationBean.isAsyncSupported. This is not true since this commit, and is misleading as by default DynamicRegistrationBean.isAsyncSupported is true, while the default dispatcher types for a filter that is not an instance of OncePerRequestFilter contains only REQUEST.

Comment From: snicoll

@spa-abaudat good catch and thank you for making your first contribution to Spring Boot.