请问这是什么问题呢

来源:8-3 Service-注册功能单测

kyoisme

2020-01-17

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.jiayuan.mall.service.UserServiceImplTest': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.jiayuan.mall.service.IUserService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

http://img.mukewang.com/szimg/images/unknow-80.png

写回答

1回答

廖师兄

2020-01-18

userService没有加注解

0
1
kyoisme
忘了加注解,犯了低级错误,老师厉害
2020-01-19
共1条回复

实战支付+电商双系统 玩转Java技术栈

花一份课的价,收获:双系统实战+坐拥20K+粉的师兄指导,值~

2047 学习 · 1048 问题

查看课程