firemail

标题: Mapped Statements collection does not contain value for [打印本页]

作者: java    时间: 2017-3-8 11:14
标题: Mapped Statements collection does not contain value for
本帖最后由 java 于 2017-3-8 11:15 编辑
  1. 原因:ApplicationContext-dao.xml中
  2.     <bean id="AccountLoggedInUserDao" class="com.kingsoft..mail.account.core.dao.impl.AccountLoggedInUserDaoImpl">
  3.         <property name="sqlSessionFactory" ref="sqlSessionFactoryAccount"/>
  4.     </bean>
  5. ref原来指向的是sqlSessionFactory不是sqlSessionFactoryAccount
  6. 而在ApplicationContext-context.xml文件配置中只对sqlSessionFactoryAccount配置了
  7. 在custom/*.xml下查找配置文件,而它sqlSessionFactory下没有设置这个路径,所以查找不到
复制代码





欢迎光临 firemail (http://firemail.wang:8088/) Powered by Discuz! X3