1,在接口方法中請求參數前面添加@Valid註解,不需要在接口的實現類上添加@Valid註解,也不需要@Validated註解:. addAnimal(@Valid Animal a).
確定! 回上一頁