spring-framework / org.springframework.validation.beanvalidation / BeanValidationPostProcessor / setAfterInitialization

setAfterInitialization

open fun setAfterInitialization(afterInitialization: Boolean): Unit

Choose whether to perform validation after bean initialization (i.e. after init methods) instead of before (which is the default).

Default is "false" (before initialization). Switch this to "true" (after initialization) if you would like to give init methods a chance to populate constrained fields before they get validated.