Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用hibernate entitymanager时是否需要始终排除cglib?_Hibernate - Fatal编程技术网

使用hibernate entitymanager时是否需要始终排除cglib?

使用hibernate entitymanager时是否需要始终排除cglib?,hibernate,Hibernate,浪费了很多时间配置我的项目,最终发现我必须从依赖项中排除cglib: <dependencies> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>3.6.4.Final</version> <

浪费了很多时间配置我的项目,最终发现我必须从依赖项中排除cglib:

<dependencies>
    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-core</artifactId>
        <version>3.6.4.Final</version>
    </dependency>

    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-entitymanager</artifactId>
        <version>3.6.4.Final</version>
        <exclusions>
            <exclusion>
                <groupId>cglib</groupId>
                <artifactId>cglib</artifactId>
            </exclusion>
            <exclusion>
                <groupId>cglib</groupId>
                <artifactId>cglib-nodep</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
</dependencies>

org.hibernate
冬眠核心
3.6.4.4最终版本
org.hibernate
休眠实体管理器
3.6.4.4最终版本
cglib
cglib
cglib
cglibnodep

是否需要始终排除cglib?为什么默认情况下不排除它?更糟糕的是,为什么官方的Hibernate文档中没有提到这一点?

为什么要删除cglib依赖项?有什么问题吗?