In our day-to-day programming, we would have used many Spring Boot default annotations that can be used for validation like @NotNull, @Size, @NotBlank, @Digits, and many more, which is a cool way to validate any incoming request.
Consider a scenario, there are some fields that are optional by default and it has to be mandatory if some other field is populated by a specific value.
from DZone.com Feed https://ift.tt/3mlpidL
No comments:
Post a Comment