1

Is there any library available for validation similar in java similar to FluentValidation for .Net for rest controller data validation?

2
  • Library recommendations are off topic per the help center. Commented May 23, 2019 at 21:26
  • Sorry I was not aware about. Commented May 24, 2019 at 12:58

2 Answers 2

2

The most widely used validation api with spring boot is - javax-validation-api - https://mvnrepository.com/artifact/javax.validation/validation-api/2.0.1.Final

Sign up to request clarification or add additional context in comments.

Comments

-1

You can use bean validation in spring-boot

https://reflectoring.io/bean-validation-with-spring-boot/

This is base on JSR303 where you can annotate Pojo fields with validation and values are validated in the controller layer before processing.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.