ClassNotFoundException: org.hibernate.cache.access.AccessType

来源:互联网 发布:隆多臂展体测数据 编辑:程序博客网 时间:2024/06/05 20:58

You only need to depend on hibernate-core. So replace all of this:

    <!-- Hibernate Core framework -->    <dependency>        <groupId>org.hibernate</groupId>        <artifactId>hibernate-core</artifactId>        <version>${hibernate-core.version}</version>    </dependency>    <!-- Hibernate Annotation framework -->    <dependency>        <groupId>org.hibernate</groupId>        <artifactId>hibernate-commons-annotations</artifactId>        <version>${hibernate-commons-annotation.version}</version>    </dependency>    <!-- Hibernate Common Annotation framework -->    <dependency>        <groupId>org.hibernate</groupId>        <artifactId>hibernate-annotations</artifactId>        <version>${hibernate-commons.version}</version>    </dependency>    <!-- Hibernate jpa -->    <dependency>        <groupId>org.hibernate.java-persistence</groupId>        <artifactId>jpa-api</artifactId>        <version>${hibernate-jpa.version}</version>    </dependency>    <dependency>        <groupId>javax.transaction</groupId>        <artifactId>jta</artifactId>        <version>${jta.version}</version>    </dependency>

with:

 <!-- Hibernate Core framework -->    <dependency>        <groupId>org.hibernate</groupId>        <artifactId>hibernate-core</artifactId>        <version>${hibernate-core.version}</version>    </dependency>

出处:https://stackoverflow.com/questions/13319636/java-lang-classnotfoundexception-org-hibernate-cache-access-accesstype-while-de

阅读全文
0 0
原创粉丝点击