Hi,
I have recently upgraded my project from 1.0.2.RELEASE to 1.1.4.RELEASE.
I have a controller called PersonController in the project. But when I tried to update some fields of the person through the GUI it threw an error saying:
In the create method in PersonController, the mapping is:Code:Ambiguous handler methods mapped for HTTP path (/Person/236) (My Class path) ... If you intend to handle the same path in multiple methods, then factor them out into a dedicated handler class with that path mapped at the type level!
It returns a string:Code:@RequestMapping(value = "/person", method = RequestMethod.POST)In the udpate method in PersonController, the mapping is:Code:return "redirect:/person/" + person.getId();
It returns a string:Code:@RequestMapping(method = RequestMethod.PUT)Code:return "redirect:/person" + person.getId();
It seems my project is using the path in the create method after I updating something. I notice that in 1.1.4.RELEASE there is some new tags added to the create.jspx and update.jspx for the Controller, mapping create and update method respectively.
They are form:create and form:update. They use different ids, but their paths are the same: path="/person".
I have also deleted the "automaticallyMaintainView=true" in requestMapping because it is not supported in Roo 1.1.4.RELEASE.
What could be causing this exception? How can I change the code to get rid of the exception?


Reply With Quote
