@RequestMapping(value = "/person/{id}", method = RequestMethod.GET) public String getPerson(@PathVariable int id, Model model) { Person person = personService.findByPersonId(id); if (person == null) { throw new ResourceNotFoundException(); } model.addAttribute("id", person.getId()); model.addAttribute("firstname", person.getFirstname()); model.addAttribute("lastname", person.getLastname()); model.addAttribute("email", person.getEmail()); model.addAttribute("description", person.getDescription()); model.addAttribute("address", person.getAddress()); model.addAttribute("organization", person.getOrg()); return "person"; }