I\'m using spring security with REST, and I\'m using the URL (/logout) as an endpoint for my logout method. But after calling this method, it redirect me to (
/logout
Use this method:
.logout().logoutSuccessUrl("enter address here where you want to go after logout")