@RequestMapping("/home")
    public void viewHome(Model model) {
        model.addAttribute("users", userService.getAllUsers());
    }
Web controller used when loading the home page.
samples/spring-hibernate/src/main/java/org/apache/shiro/samples/sprhib/web/HomeController.java