我用的MyEclipse6.0.0M1 + mysql 使用spring2.0和hibernate3.1出现以上异常.楼上各位的方法都试了,还是不行.更为使用Spring1.2和hibernate3.1后.一切正常.各位高手如果知道原因,请指教.
cglib换成最新版的再试试,应该就没问题了
这个错误: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: 应该是要在spring的xml文件中要加入这个吧: <!-- 配置sessionFactory --> <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="configLocation"> <value>classpath:hibernate.cfg.xml</value> </property> </bean>
则需要commons-beanutils.jar(191KB)替换为commons-beanutils.jar(184KB)
commons-beanutils.jar(184KB)这个在迅雷里就可以搜到
使用spring2.0和hibernate3.1出现以上异常.楼上各位的方法都试了,还是不行.更为使用Spring1.2和hibernate3.1后.一切正常.各位高手如果知道原因,请指教.
Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: 应该是要在spring的xml文件中要加入这个吧:
<!-- 配置sessionFactory -->
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation">
<value>classpath:hibernate.cfg.xml</value>
</property>
</bean>