Validating constraints for JavaBeans in Java microservices
Learn how to use bean validation for microservices. Explore writing and testing microservices with Bean Validation 2.0. Discover new built-in constraints like @Email, @NotBlank, @Positive, and @Negative. Improve validation in common scenarios and specify constraints on type parameters.
At a Glance
Explore the use of bean validation to validate user input data for microservices.
You will learn the basics of writing and testing a microservice that uses bean validation and the new functionality of Bean Validation 2.0. The service uses bean validation to validate that the supplied JavaBeans meet the defined constraints.
Several additional built-in constraints are included in Bean Validation 2.0, which reduces the need for custom validation in common validation scenarios. Some of the new built-in constraints include @Email, @NotBlank, @Positive, and @Negative. Also in Bean Validation 2.0, you can now specify constraints on type parameters.
User Reviews
Be the first to review “Validating constraints for JavaBeans in Java microservices”
You must be logged in to post a review.
There are no reviews yet.