Announcement Announcement Module
Collapse
No announcement yet.
Property Placeholder and SpEL Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Property Placeholder and SpEL

    Hi,

    i want to combine a property placeholder with a method call on spring bean.
    If the property isn't set, the return value of the method should be taken as default value.

    I tried the following:

    ${property.name:#{bean.method()}}
    #{${property.name}:#{bean.method()}}
    #{property.name?#{bean.method()}}
    #{${property.name}?#{bean.method()}}

    Every of these fails during bean creation.
    Is it even possible in to combine Properties and SpEL in the way i want?

    Thanks!

    Matthias

  • #2
    In my knowledge, I don't think its possible to do

    Comment

    Working...
    X