1、Field *** could not be found.
原因:dubbo没注册
解决办法:
(1)在dubboService.xml中配置
<dubbo:service ref="iUserApi" interface="com.itable.api.IUserApi" />
(2) 在dubbo-consumer.xml中配置
<dubbo:reference id="iUserApi" interface="com.itable.api.IUserApi" />
2、A component required a bean named 'iUserApi' that could not be found.
原因:未在接口实现类Service注解加上参数
解决方法:在接口实现类加上 @Service("userService")
@Service("userService")
public class UserServiceImpl implements UserService {
最后
以上就是无限小天鹅最近收集整理的关于解决 dubbo启动服务找不到实际存在的类报错的全部内容,更多相关解决内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复