Concept
Bean Validation annotations on request classes, @NotBlank, @Size, @Email, with @Valid on the parameter, reject bad input before your code runs. The errors come back as a 400 with field details.
The tutor works through these with you, in conversation and code. A session ends when you have shown them, not when a video does.
A few lines that show Request validation doing its job.
public record CreateOrder(
@NotEmpty List<@Valid LineItem> items,
@Email String customerEmail,
@Size(max = 200) String note
) {}
public record LineItem(@NotBlank String sku, @Min(1) @Max(99) int quantity) {}
@PostMapping
OrderView create(@RequestBody @Valid CreateOrder request) { ... }Annotating the record but forgetting @Valid on the controller parameter, or on a nested list element. Nothing is checked and the invalid request reaches your service.
Your roadmap puts these before Request validation, unless you already know them.
Once a session shows you understand Request validation, it comes back for review. Each review takes a minute and tells the memory model how well you still know it.