We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consumer side, it's too troublesome to use:
@EnableEurekaClient @component public class GreeterServiceConsumer { @Autowired private EurekaClient client;
public void greet(String name) { final InstanceInfo instanceInfo = client.getNextServerFromEureka("my-service-name", false);//(1) final ManagedChannel channel = ManagedChannelBuilder.forAddress(instanceInfo.getIPAddr(), instanceInfo.getPort()) .usePlaintext() .build(); //(2) final GreeterServiceGrpc.GreeterServiceFutureStub stub = GreeterServiceGrpc.newFutureStub(channel); //(3) stub.greet(name); //(4) }
}
such as:
@EnableEurekaClient @component public class GreeterServiceConsumer {
@GrpcClient("gRPC server name") private GreeterServiceGrpc.GreeterBlockingStub stub; //(1) public void greet(String name) { stub.greet(name); //(2) }
The text was updated successfully, but these errors were encountered:
@jvmlet Is there any update about this enhancement?
Sorry, something went wrong.
No branches or pull requests
Consumer side, it's too troublesome to use:
@EnableEurekaClient
@component
public class GreeterServiceConsumer {
@Autowired
private EurekaClient client;
}
such as:
@EnableEurekaClient
@component
public class GreeterServiceConsumer {
}
The text was updated successfully, but these errors were encountered: