Announcement Announcement Module
Collapse
No announcement yet.
@Controller Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • @Controller

    Hi,

    is this possible with the @Controller-Annotation:

    Code:
    @Controller
    public class Foo {
      void bar(String id) {...}
    }
    should automatically map to: foo/bar?id=...

    For me it seems that I have to use @RequestMapping and @RequestParam too, to achive the mapping. Why can't this be done automatically - by convention?

    OK, the parameter name id is lost after compilation.
    But one could do the mapping just by parameter order.

    Just a few ideas... still playing around with the new 2.5 web stuff.
Working...
X