When the Spring used to own validation framework, do to the Validator interface implementation class, implement the validate method of Errors in the process of injected a mistake
Arg1. RejectValue (" id ", "id. The validator");
The id, the validator is a key attribute resource file error messages,
But in running process error, error message is:
Org. Apache. Jasper. JasperException: org. Springframework. Context. NoSuchMessageException: No message found under code 'id. The validator. Uf. Id for the locale' zh_CN '.
Uf is the names of objects in the Model, why in the id. The validator followed by uf. The id?