mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-05-28 14:19:38 +00:00
fixing a RequestMapping issue
caused images not to be loaded
This commit is contained in:
parent
e9b6aff0d4
commit
ece1a7a7ac
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ public class PetController {
|
|||
dataBinder.setDisallowedFields("id");
|
||||
}
|
||||
|
||||
@RequestMapping( method = RequestMethod.GET)
|
||||
@RequestMapping(value="/owners/{ownerId}/pets/new", method = RequestMethod.GET)
|
||||
public String initCreationForm(@PathVariable("ownerId") int ownerId, Model model) {
|
||||
Owner owner = this.clinic.findOwner(ownerId);
|
||||
Pet pet = new Pet();
|
||||
|
|
Loading…
Reference in a new issue