I get an exception with the following method:
@Transactional @RequestMapping(method=RequestMethod.PUT) public @ResponseBody Account create(@Valid @RequestBody CreateAccountRequest request, BindingResult bindingResult) { ... }
Throws the following exception:
java.lang.IllegalStateException: the Errors / BindingResult argument is expected immediately after the model attribute argument in the controller signature: public com.mangofactory.concorde.domain.Account com.mangofactory.concorde.api.AccountService.create (com.mangofactory.concorde. api.rpc.CreateAccountRequest, org.springframework.validation.BindingResult)
According to the documentation , I have to add BindingResult as the second parameter. However, I did it.
He is even present in the exception.
What did I miss?
source share