paul-rpc / thrift-http-rpc

thrift rpc via http protocal with spring

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

thrift-http-rpc

thrift rpc via http protocal with spring

USE CASE

private String url = "http://127.0.0.1:8080/service/";

@Test
public void test() throws TException {
	TTransport transport = new THttpClient(url);
	TProtocol protocol = new TBinaryProtocol(transport);
	TMultiplexedProtocol mp = new TMultiplexedProtocol(protocol, "EchoService");
	EchoService.Client userServiceClient = new EchoService.Client(mp);
	String s = userServiceClient.echo("hello");
	System.out.print(s);
}

CI Used

About

thrift rpc via http protocal with spring


Languages

Language:Java 98.6%Language:Thrift 1.4%