Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]异常

来源:互联网 发布:js调用手机前置摄像头 编辑:程序博客网 时间:2024/06/04 08:07

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'departmentDao' defined in class path resource [applicationContext-import-service.xml]: Cannot resolve reference to bean 'hibernateTemplate' while setting bean property 'hibernateTemplate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext-service.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]

缺少javassist.jsr包

如果使用maven可以这样加:

<dependency>
            <groupId>javassist</groupId>
            <artifactId>javassist</artifactId>
            <version>3.8.0.GA</version>
</dependency>


原创粉丝点击