Fetch logged in username in Spring Security
)
public String logoff(ModelMap model) {
return "login"... credential are correct, following page will appear :
When you logoff
Spring Security Logout
will get the below page :
After you click Logoff , you will be redirected