标签:spring strong art vax check string hibernate soft traints
异常信息:javax.validation.UnexpectedTypeException: HV000030: No validator could be found for constraint ‘javax.validation.constraints.NotBlank‘ validating type ‘java.lang.String‘. Check configuration for ‘xx‘
分析原因:1)、注解与需要校验的数据类型不匹配;2)、validation-api和hibernate-validator版本不匹配
解决方案:参考博文https://www.cnblogs.com/softidea/p/6044123.html,我的就是版本匹配问题,引入spring-boot-starter-validation解决了。
Hibernate Validator表单验证异常javax.validation.UnexpectedTypeException问题
标签:spring strong art vax check string hibernate soft traints
原文地址:https://www.cnblogs.com/54hsh/p/13073150.html