Spring MVC+Mybatis报错,dao层的方法为什么找不到映射文件中的sql
1个回答
2016-12-06
展开全部
<bean id="boardDao" class="wyc.bbs.dao.BoardDao">
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<bean id="forumService" class="wyc.bbs.service.ForumService">
<property name="boardDao" ref="boardDao"></property>
</bean>
<bean id="boardController" class="wyc.bbs.web.BoardController">
<property name="forumService" ref="forumService"></property>
</bean>
BoardDao、ForumService、BoardController有没有set方法或者相应的注解
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<bean id="forumService" class="wyc.bbs.service.ForumService">
<property name="boardDao" ref="boardDao"></property>
</bean>
<bean id="boardController" class="wyc.bbs.web.BoardController">
<property name="forumService" ref="forumService"></property>
</bean>
BoardDao、ForumService、BoardController有没有set方法或者相应的注解
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询