org.apache.dubbo.rpc.RpcException: No provider available from registry ... please check status of providers(disabled, not registered or in blacklist).

dubbo报错问题

需要给dubbo service 加一个分组名。

 //服务提供者
@DubboService(version = "1.0.0", timeout = 3000, group = "test1")
public class DubboServiceImpl implements DubboService {

    @Override
    public String test(String str) {
        return "test1";
    }
}
//服务调用者
@Service
public class DubboServiceImpl implements DubboService {

    @DubboReference(version = "1.0.0", group = "test1")
    private DubboService dubboService;

    @Override
    public String test(String str) {
        return dubboService.test(str);
    }

}

在上面的代码中增加一个分组名为test1即可。