Spring Boot - Request and Response Handling
Consider this DTO:
public class ProductDto {
@NotNull
private String name;
@Min(1)
private int quantity;
}
What happens if a client sends JSON with quantity as 0?