-
Dec 18th, 2012, 03:25 AM
#1
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules