spring 配置文件的相互引用问题
UserDAOSupport.xml
<beans ...................
<import resource="spring_unite_hibernate/FactoryConfigDataSource.xml"/>
<bean id="UserDao" class="spring_unite_hibernate.UserDaoSupport">
<property name="sessionFactory">
<ref bean="sessionFactory"/>
</property>
</bean>
</beans>
FactoryConfigDataSource.xml
<beans.....................................
<bean id="dataSource"
......................
.....................
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref local="dataSource" />
</property>
<property name="mappingResources">
<list>
<value>User.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="dialect">org.hibernate.dialect.SQLServerDialect</prop>
<prop key="hibernate.show_sql">true</prop>
</props>
</property>
</bean>
</beans>
两个配置文件在同一包spring_unite_hibernate下面,为什么UserDAOSupport.xml的bean中引用
FactoryConfigDataSource.xml中的sessionFactory 一直提示引用的bean‘sessionFactory’找不到