spring-framework / org.springframework.beans / PropertyValue / setOptional

setOptional

open fun setOptional(optional: Boolean): Unit

Set whether this is an optional value, that is, to be ignored when no corresponding property exists on the target class.

Since
3.0