result.setErrorMsgMap(true) true報錯
if?(constraintViolationSet.size()>0){ ????//有錯誤 ????result.setErrorMsgMap(true); ????constraintViolationSet.forEach(constraintViolation->{ ????????String?errMsg?=constraintViolation.getMessage(); ????????String?propertyName=constraintViolation.getPropertyPath().toString(); ????????result.getErrorMsgMap().put(propertyName,errMsg); ????}); } 其中result.setErrorMsgMap(true)??true報錯
2019-10-20
我搞錯了,不好意思?