Failed to convert property value of type [dao.userDAO] to required type [dao.titlesDAO] for propert
真不知到userdao哪配错了,配置文件如下:<!--dao--><beanid="userDAO"class="dao.userDAO"><propertyname="...
真不知到userdao哪配错了,配置文件如下:
<!-- dao-->
<bean id="userDAO" class="dao.userDAO">
<property name="sessionFactory">
<ref bean="sessionFactory"/>
</property>
</bean>
<bean id="titlesDAO" class="dao.titlesDAO">
<property name="sessionFactory">
<ref bean="sessionFactory"/>
</property>
</bean>
<!-- biz -->
<bean id="userBIZ" class="biz.userBIZ">
<property name="userdao">
<ref bean="userDAO"/>
</property>
</bean>
<bean id="titlesBIZ" class="biz.titlesBIZ">
<property name="titlesdao">
<ref bean="userDAO"/>
</property>
</bean>
<!-- action-->
<bean name="/users" class="web.action.UserAction">
<property name="userbiz">
<ref bean="userBIZ"/>
</property>
</bean>
<bean name="/titles" class="web.action.TitlesAction">
<property name="titlesbiz">
<ref bean="titlesBIZ"/>
</property>
</bean> 展开
<!-- dao-->
<bean id="userDAO" class="dao.userDAO">
<property name="sessionFactory">
<ref bean="sessionFactory"/>
</property>
</bean>
<bean id="titlesDAO" class="dao.titlesDAO">
<property name="sessionFactory">
<ref bean="sessionFactory"/>
</property>
</bean>
<!-- biz -->
<bean id="userBIZ" class="biz.userBIZ">
<property name="userdao">
<ref bean="userDAO"/>
</property>
</bean>
<bean id="titlesBIZ" class="biz.titlesBIZ">
<property name="titlesdao">
<ref bean="userDAO"/>
</property>
</bean>
<!-- action-->
<bean name="/users" class="web.action.UserAction">
<property name="userbiz">
<ref bean="userBIZ"/>
</property>
</bean>
<bean name="/titles" class="web.action.TitlesAction">
<property name="titlesbiz">
<ref bean="titlesBIZ"/>
</property>
</bean> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询