@GetMapping(value = "/pets/{petId}/edit")
    public String initUpdateForm(@PathVariable("petId") int petId, ModelMap model) {
        Pet pet = this.clinicService.findPetById(petId);
        model.put("pet", pet);
        return VIEWS_PETS_CREATE_OR_UPDATE_FORM;
    }
@author Juergen Hoeller
@author Ken Krebs
@author Arjen Poutsma
src/main/java/org/springframework/samples/petclinic/web/PetController.java