spring mvc process object before @valid is applied
问题 I have a spring mvc controller like the following @RequestMapping(value="/new", method=RequestMethod.POST) public String createBooking(@Valid Booking booking, BindingResult bindingResult, Model model, Principal principal) { if(bindingResult.hasErrors()) { return "booking/edit"; } //Store Booking in db... ... The problem is the Booking object i get from the POST is constructed by Spring, but one of the properties required by the validator cannot be populated, as the property is not present in