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

  • How to pass parameters to an @Controller

    Hello,

    how to I pass any parameters to an @Controller? I want to have some parameters in my xml files (e.g. app-config.xml) and pass them to an @Controller. But the controllers are not available in the xml files (configured by annotations) and I don't know how to pass any parameters....

    Regards,
    Broesel

  • #2
    Have a look at the @Value annotation in Spring 3. It supports both #{...} expressions to reference beans and ${...} for placeholders.

    Comment

    Working...
    X