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>