HV000030: No validator could be found for constraint ‘javax.validation.constraints.Size‘ validating
HV000030: No validator could be found for constraint ‘javax.validation.constraints.Size’ validating type ‘java.lang.Integer’
在做参数效验时,报上面的错误
/**
* 情感和社会评价星数
*/
@Size(min = 1, max = 5, message = "情感和社会评价的星数得控制在1-5颗星之内")
private Integer emotionPoint;
原因:
![
原创
2020-10-09 20:43:16 ·
615 阅读 ·
0 评论