java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition;

<bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
    	<property name="dataSource" ref="dataSource"></property>
    	<property name="configLocation" value="classpath:hibernate.cfg.xml"></property>
    </bean>
	
	<bean id="txManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager">
		<property name="sessionFactory" ref="sessionFactory"></property>
	</bean>

添加事物后运行报错,网上各种找原因,无果。

最后到Tomcat部署目录看spring的配置文件,配置文件中显示的是hibernate3.。。。。。

清理缓存,问题解决。

总结:实在找不到原因不妨试试缓存清理。

猜你喜欢

转载自blog.csdn.net/qq_21860997/article/details/80902610