javax.validation.ConstraintDeclarationException: 异常出现的原因:


报错信息:javax.validation.ConstraintDeclarationException: HV000151: A method overriding another method must not redefine the parameter constraint configuration, but method HelloController#sayHello(String) redefines the configuration of HelloInterface#sayHello(String).

 

 

原因:子类继承父类,子类中字符校验未通过;父类未进行字符校验

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM