Spring MVC with hibernate Validator to validate single basic type

后端 未结 3 1293
我寻月下人不归
我寻月下人不归 2021-02-19 07:45

Below is the mapped method that I am having trouble with, no matter what value I pass to it the validation returns \"passed validation.\"

@RequestMapping(value          


        
3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-19 07:50

    No, it is not allowed. I see your point however the JSR-303 specification (which hibernate validator implements) are meant for beans validation, see here

提交回复
热议问题