@RequestMapping(value = "/list", method = RequestMethod.GET) public String list(Model model) { model.addAttribute("listResources", resourcesService.getAll()); model.addAttribute("resources", new Resources()); model.addAttribute("modules", resourcesService.getModules()); return "resources/list"; }