lundi 3 juin 2019

I can't integrate Hibernate Validator into a javaweb project using the spring framework

I will try to hibernate validation to join my web project, but if there is a spring in project - the context - the indexer - 5.0.6. RELEASE. This jar jar package, will lead to use at run time to check thrown Java. The lang. The annotation. AnnotationFormatError: Duplicate annotation for class is an exception which will cause me to fail to integrate hibernate validation into my web project. How can I solve this problem?

Exception in thread "main" java.lang.annotation.AnnotationFormatError: Duplicate annotation for class: interface javax.validation.constraints.NotNull: @javax.validation.constraints.NotNull(message={javax.validation.constraints.NotNull.message}, groups=[], payload=[])




Aucun commentaire:

Enregistrer un commentaire