How to: Spring get rid of @Validate for automatic Controller validation?
I know about @Valid annotation to instruct spring to validate for example a Controller argument according to JSR-303 in such this example: @GetMapping("/test") public TestDTO testDTO(@Valid TestDTO testDTO){ return testDTO; } But I would like to be able to configure Spring in some way to enable validation in all my controllers without specify explicitly the @Valid annotation. Is that possible in any way? Some Spring configuration? Making use of AOP?... I have finally came across with a working solution which may be not the optimal from the point of view of Spring configuration (as I said I'm