/* * This method will list all existing employees. */ @RequestMapping( value = {"/", "/list"}, method = RequestMethod.GET) public String listEmployees(ModelMap model) { List<Employee> employees = service.findAllEmployees(); model.addAttribute("employees", employees); return "allemployees"; }