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
Foo those who use XML config, here is the equivalent snippet for the one given by Tahir Akhtar.
Within element, configure the element as follows:
And define httpStatusReturningLogoutSuccessHandler bean as follows:
httpStatusReturningLogoutSuccessHandler