@RequestMapping(value = "/login", method = RequestMethod.GET)
    public String showLoginForm(Model model, @ModelAttribute LoginCommand command) {
        return "login";
    }
Web MVC controller that handles security-related web requests, such as login and logout.
samples/spring-hibernate/src/main/java/org/apache/shiro/samples/sprhib/web/SecurityController.java