I'm trying to create a logout option for login page.
AntPathRequestMatcher pathRequestMatcher = new AntPathRequestMatcher("/logout");
http.logout().logoutRequestMatcher(pathRequestMatcher);
Since org.springframework.security.web.util.AntPathRequestMatcher.AntPathRequestMatcher is deprecated in Spring Security 4.1.6, which class I supposed to use?