Add the given filter to the ServletContext and map it to the
DispatcherServlet as follows:
a default filter name is chosen based on its concrete type
the asyncSupported flag is set depending on the
return value of asyncSupported
a filter mapping is created with dispatcher types REQUEST,
FORWARD, INCLUDE, and conditionally ASYNC depending
on the return value of asyncSupported