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