AbstractSecurityWebApplicationInitializer registers the DelegatingFilterProxy to use the springSecurityFilterChain before any other registered Filter. For more detail find
spring doc linkIn our Spring security application, we can use it as
import org.springframework.security.web.context.AbstractSecurityWebApplicationInitializer;
public class SecurityInitializer extends AbstractSecurityWebApplicationInitializer {
}
Find the link for complete example.
http://www.concretepage.com/spring-4/spring-4-security-annotation-login-example-with-gradle