It is better to use Spring EL in such way
<property name="password" value="${email.password:#{null}}"/>
it checks whether email.password is specified and sets it to null (not "null" String) otherwise
It is better to use Spring EL in such way
<property name="password" value="${email.password:#{null}}"/>
it checks whether email.password is specified and sets it to null (not "null" String) otherwise