请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

正在回答 回答被采纳积分+3

1回答

提问者 肖小小 2019-10-02 07:54:45

我在UserDao上添加了

@Mapper
@Repository
public interface UserDao {

    public List<User> selectUsers();
}

为什庅还要添加 @Repository才行 不能只添加@Mapper

我看老师也只添加了一个

0 回复 有任何疑惑可以回复我~
  • 提问者 肖小小 #1
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userServiceImpl': Unsatisfied dependency expressed through field 'userDao'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userDao' defined in file [/Users/xiao_xiaoxiao/Downloads/quartzdemo/house/target/classes/com/imooc/house/dao/UserDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory';
    回复 有任何疑惑可以回复我~ 2019-10-02 08:02:10
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号