December 21, 2020

No validator could be found for constraint 'javax.validation.constraints.NotBlank' validating type 'java.lang.Long'. Check configuration for 'WorldEnd'



 No validator could be found for constraint 'javax.validation.constraints.NotBlank' validating type 'java.lang.Long'. Check configuration for 'Bean validation in spirng boot'


Solutions

As clearly mentioned in the  problem, to solve this error you MUST use correct annotations.

In above case, 

@NotBlank or @NotEmpty annotation are used in String datatype.

you need to use @NotNull for Long datatypes.


No comments:

Post a Comment

Your feedback may help others !!!

Facebook comments