1

I get an exception like below SO question:

SpringPersistenceUnitInfo :: AbstractMethodError

Caused by: java.lang.AbstractMethodError: org.springframework.orm.jpa.persistenceunit.SpringPersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode

My dependencies are in the screenshot, i tried almost all the advices, result is same exception:

enter image description here

After adding dependencies in answer:

enter image description here

Community
  • 1
  • 1
merveotesi
  • 2,145
  • 15
  • 53
  • 84

1 Answers1

1

You're most likely missing these dependencies:

<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-validator-annotation-processor</artifactId>
    <version>5.0.3.Final</version>
    <scope>test</scope>
</dependency>

<dependency>
    <groupId>javax.validation</groupId>
    <artifactId>validation-api</artifactId>
    <version>1.1.0.Final</version>
    <scope>test</scope>
</dependency>
Zaki
  • 6,997
  • 6
  • 37
  • 53