-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Complete
-
Affects Version/s: 1.1.3.RELEASE
-
Fix Version/s: 1.1.4.RELEASE
-
Component/s: WEB MVC
-
Labels:None
Just ran the petclinic script with 1.1.3 and saw no sign of the method that actually does call the finder method on the domain object
This is ok
@RequestMapping(params =
{ "find=ByNameAndWeight", "form" }, method = RequestMethod.GET)
public String PetController.findPetsByNameAndWeightForm(Model uiModel)
This is missing?
@RequestMapping(params = "find=ByNameAndWeight", method = RequestMethod.GET)
public String PetController.findPetsByNameAndWeight(@RequestParam("name") String name, @RequestParam("weight") Float weight, Model uiModel)
Since this method is missing, spring ends up calling
@RequestMapping(method = RequestMethod.GET)
public String PetController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) {
which calls Pet.findAllPets()