SSH整合遇到java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition错误
查了下,错误的原因是 <bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">这句话造成的,改成<bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">就可了,但是hibernate里面我想使用annotation,怎么解决,请各位大神帮帮忙,谢谢
------解决思路----------------------
hibernate的annotation?
是validate还是实体类?
validate是hibernate-validation(还是validate忘了)
实体类是jpa的annotation
都跟sessionFactory没关系