hibernate错误

错误提示

init method failed; nested exception is java.lang.AbstractMethodError

错误原因:存在jar包冲突

错误提示

Caused by: java.lang.NoClassDefFoundError: org/hibernate/engine/transaction/spi/TransactionContext

错误原因:hibernate-core包版本有问题

<dependency>

<groupId>org.hibernate</groupId>

<artifactId>hibernate-core</artifactId>

<version>${hibernate.version}</version>

</dependency>

相关推荐