spring-framework / org.springframework.web.bind.support / ConfigurableWebBindingInitializer / setMessageCodesResolver

setMessageCodesResolver

fun setMessageCodesResolver(@Nullable messageCodesResolver: MessageCodesResolver): Unit

Set the strategy to use for resolving errors into message codes. Applies the given strategy to all data binders used by this controller.

Default is null, i.e. using the default strategy of the data binder.

See Also
org.springframework.validation.DataBinder#setMessageCodesResolver