Validation

Валидация входных данных в Spring простыми словами: где валидировать (границы vs домен), Bean Validation (@Valid, @NotNull, @Size), свои ограничения, межполевые проверки и сообщения об ошибках.

A compact section on input validation in Spring: where to check data, how to use Bean Validation, and when to write custom constraints. It complements the breakdown of REST errors and the validation style guide.