@RequestMapping(value = "/tusers")
@Controller
@RooWebScaffold(path = "tusers", formBackingObject = TUser.class)
public class UserController {
@RequestMapping(value = "/tusers/{id}", produces = "text/html", method = RequestMethod.GET)
public String show(@PathVariable("id") Long id, Model uiModel) {
uiModel.addAttribute("object", tUserService.findTUser(id));
uiModel.addAttribute("itemId", id);
return "tusers/show";
}
Why does this give me HTTP Status 405 - Request method 'GET' not supported on url: http://localhost:8080/twiter-roo/tusers/1 ?