Tag Archives: javax.validation.ConstraintDeclarationException

[How to Solve] javax.validation.ConstraintDeclarationException

Error Message:

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).

 

 

Reason: The child class inherits the parent class, and the character check in the child class fails; the parent class does not perform the character check