Hibernate和Spring整合的时候出现问题,注入Action出错
这个是Spring的配置文件—–applicationContext.xml
<!--注入dao -->
<bean id="dao" class="com.ssh.dao.EmpDaoImpl">
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<!--注入biz -->
<bean id="biz" class="com.ssh.biz.EmpBizImpl">
<property name="dao" ref="dao"></property>
</bean>
<!-- 注入action -->
<bean id="EmpAction" class="com.ssh.action.EmpAction">
<property name="biz" ref="biz"></property>
</bean>
</beans>
然后这个是我的项目截图:
我也不知道为什么,但是就是这个问题。。。