an easy rpc use http
mvn clean package
编译完server端和client端运行jar包在各子目录target下
服务端启动java -jar ./server/target/RpcHttpServer-1.0-SNAPSHOT.jar
客户端启动java -jar ./client/target/RpcHttpClient-1.0-SNAPSHOT.jar
测试:
curl http://127.0.0.1:24000/getOne1
curl http://127.0.0.1:24000/getOne2
curl http://127.0.0.1:24000/getTwo1
curl http://127.0.0.1:24000/getTwo2