後端校驗

後端校驗方式可參考以下方法:  1.實體類中添加校驗註解,參考:ChecktemplateSupport 2.接口方法參數前添加註解@Validated,參數後添加BindingResult bindingResult接收錯誤 3.ValidateExceptionUtil.handleBindException(bindingResult).getStatus()判斷校驗是否通過  參考Chec
相關文章
相關標籤/搜索