This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
No announcement yet.
Redirecting to default-login-url when user is logged inPage Title Module
Map the login page URL to a controller and add the logic in there. Check if the user is authenticated (the SecurityContextHolder contains a non-anonymous Authentication object). If it does, redirect them to the page you want, otherwise display the login view.