Using Consumer in Spring Validator to validate nested collections
In one of my projects I have a custom Spring Validator that validates a nested object structure, and adds per-field error messages. As an example, a field nested inside an array might produce an error like the following: The Errors object works as a stack, so field names have to be pushed as the validator iterates through arrays and nested objects. So, a very simple validator […]
Using Consumer in Spring Validator to validate nested collections Continue Reading »