Solution code for:
- Cannot Autowired a beans into customized validator and
- Inject Service in ConstraintValidator [Bean Validator - JSR 303] Spring
Shows how to auto wire a "spring bean" (MyService) into a javax.validation.ConstraintValidator.
mvn clean test
mvn spring-boot:run
curl -X POST http://localhost:8080/some \
-H 'Content-Type: application/json' \
-d '{"name": "john","email": "john.doe@localhost","custom": "heLLo"}'