dubbo Error creating bean with name 'XXXXX.XXXXX.XXXXXService'异常

水深无声 2022-08-18 12:07 241阅读 0赞

当在dubbo-provider.xml中 配置了

启动服务端报如下异常:

服务启动失败:Error creating bean with name ‘XXXXX.XXXXX.XXXXXService’:

Cannot resolve reference to bean ‘XXXXX.XXXXX.XXXXXServiceImpl’ \while setting bean property ‘ref’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException:

No bean named ‘XXXXX.XXXXX.XXXXXServiceImpl’ is defined

我自己总结了一下有如下原因:

1、有可能是在XXXXX.XXXXX.XXXXXServiceImpl 上面没有加@service注解

2、看@service 引入的包是否正确 ,是否正确引入 import org.springframework.stereotype.Service;

3、有可能是对象没有实现序列化。也导致这种错误。

发表评论

表情:
评论列表 (有 0 条评论,241人围观)

还没有评论,来说两句吧...

相关阅读