How do I use @Valid with Spring MVC's @RequestBody parameters?

前端 未结 2 1632
孤城傲影
孤城傲影 2020-12-31 01:14

I\'m having an issue with using @Valid on a parameter to a handler method on my @Controller. My code looks like this:

@RequestMappi         


        
2条回答
  •  清酒与你
    2020-12-31 01:51

    Are you using Spring 3.1? It is a newly added feature in Spring version 3.1. Please see Validation For @RequestBody Method Arguments

提交回复
热议问题