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

  • Controlling Annotation Parameter

    class Bean
    {
    @Length(max=5)
    String value;
    }

    Is there a way to inject a max value from spring context? Ie. I'd like to avoid hard coding max=5. This is useful in case of library development and such.

    Thanks,

  • #2
    You can create you own BeanPostProcessor that is able to process your custom annotation.

    Comment

    Working...
    X