Document that @Validated results in the use of a proxy and warn users about the side-effects #24338
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: documentation
A documentation task
Milestone
Affects: All supported versions
Using
@Validated
can result in a CGLib proxy being created for a bean. This has the sometimes unexpected side-effect of changing how the bean's fields behave when accessed directly. Please see this Spring Boot issue for an example of a problem that this unexpected behavior can cause.I think it would be good if the Framework reference documentation noted the use of a proxy and forewarned users about the side-effects.
The text was updated successfully, but these errors were encountered: