Spring Boot Write custom validator for request body in Spring Boot Hibernate Validator provides predefined annotations to validate our inputs but, it often happens that we need a custom validation logic. We will see our to write one in this tutorial.