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

setDirectFieldAccess

fun setDirectFieldAccess(directFieldAccess: Boolean): Unit

Set whether to use direct field access instead of bean property access.

Default is false, using bean property access. Switch this to true in order to enforce direct field access.

See Also
org.springframework.validation.DataBinder#initDirectFieldAccess()org.springframework.validation.DataBinder#initBeanPropertyAccess()