Я пытаюсь создать опцию выхода из системы для страницы входа.
AntPathRequestMatcher pathRequestMatcher = new AntPathRequestMatcher("/logout");
http.logout().logoutRequestMatcher(pathRequestMatcher);
Поскольку org.springframework.security.web.util.AntPathRequestMatcher.AntPathRequestMatcher
равен deprecated
в Spring Security 4.1.6, какой класс я должен использовать?