**Exception in thread "main" org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'meetingPubServiceImpl': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.qify.service.UserService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}**yua
在dubbo学习中遇到这个错误
原因是消费者的xml中配置的端口写错了。。低级错误,出现这个问题大家一定要去看xml文件,八成是某个字母写错了。
<dubbo:reference id=“userService” interface=“com.qfiy.service.UserService” />