Differences in @Valid and @Validated Annotations in Spring Here we’ll have the saveBasicInfo method with the @Valid annotation to validate the user input: @RequestMapping(value = " saveBasicInfo", method = RequestMethod POST) public String saveBasicInfo( @Valid @ModelAttribute("useraccount") UserAccount useraccount, BindingResult result, ModelMap model) { if (result hasErrors()) { return "error