open fun setDefaultObject(defaultObject: Any): Unit
Specify a default object to fall back to if the JNDI lookup fails. Default is none.
This can be an arbitrary bean reference or literal value. It is typically used for literal values in scenarios where the JNDI environment might define specific config settings but those are not required to be present.
Note: This is only supported for lookup on startup. If specified together with #setExpectedType, the specified value needs to be either of that type or convertible to it.
See Also
#setLookupOnStartupConfigurableBeanFactory#getTypeConverter()SimpleTypeConverter