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