Input Validation (JSR-303 / Bean Validation)
Bean Validation (JSR-380, implemented by Hibernate Validator) lets you declare constraints directly on fields with annotations. Adding @Valid on a @RequestBody or @ModelAttribute parameter triggers automatic validation — if constraints are violated, Spring throws MethodArgumentNotValidException before your controller method is even called.