Discussion :: Spring MCQs
- Validator field is not assigned to any bean, but rather a factory class of the type.
A.
javax.validation.Validator
|
B.
javax.validation.ValidatorFactory
|
C.
javax.validation.ValidatorFactor
|
D.
none of the mentioned
|
Answer : Option B
Explanation :
This is how JSR-303 validation works. The assignment process is done inside the controller's constructor.
Be The First To Comment