In my Roo application, I need to add an additional parameter to the list method, so I pushed it in to my controller class:
Unfortunately, since version 1.1.1, Roo keeps re-generating the original list() method in MyController_Roo_Controller.aj, leading to a 500-errorpage with the following error message:Code:@RooWebScaffold(path = "participants", formBackingObject = MyDomainClass.class) @RequestMapping("/foo/{myPath}/") class MyController { @RequestMapping(value="/", method = RequestMethod.GET, headers="Accept=text/html") public String list( @PathVariable String myPath, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model model) { ... } }
Is there some way to prevent Roo from regenerating the method? This has only started happening since I upgraded to version 1.1.1.Code:Ambiguous handler methods mapped for HTTP path '/foo/somepath': {public java.lang.String MyController.list(java.lang.Integer,java.lang.Integer,org.springframework.ui.Model), public java.lang.String MyController.list(java.lang.String,java.lang.Integer,java.lang.Integer,org.springframework.ui.Model)}.
Thanks,
--Chris


Reply With Quote
