I have a Spring boot application. My request classes passed to my @RestController contains javax.validation annotations which I cannot change/remove - they come as a 3rd party library. So I want to validate my request objects manually or don't validate them at all. Unfortunately if I add either:
spring-boot-starter-validation- to haveValidatorbean preconfigured orvalidation-apiandhibernate-validator- to create aValidatorby myself
Spring automatically enables validation for all my @RestControllers.
Is it possible to disable automatic validation in Spring?