RestEasy - Parameters Binding - Validation and Errors - EJB
问题 Lets say I define a POJO with parameters that is passed to a REST call class MyVO { @NotNull @PathParam("name") private String name; @NotNull @PathParam("age") private Integer age; // getters and setters } public class RESTclass { public postData( @Form MyVO vo ) { } } It automatically binds the objects in MyVO. But where do I get the validation errors? Does it trigger the validation during binding? If not, how to trigger the validations? Spring does all these well. It has BindingResult