From 72dea4f2ab6bcfddcfe3953f6126a5fef72e73a5 Mon Sep 17 00:00:00 2001 From: lbl8603 <49143209+lbl8603@users.noreply.github.com> Date: Mon, 2 Mar 2020 15:33:43 +0800 Subject: [PATCH] Update README.md --- README.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 542fab0..552836d 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,14 @@ wherewego.rpc.protocol.name=wqRpc wherewego.rpc.application.name=wqRpc ``` 4.服务提供者编写接口 -例: + +在启动类上加入注解,加入注解MyRPC才能启动 +``` +//包路径为com.wherewego.rpc.config.annotation +@EnableMyRPC +``` + +测试代码,例: ``` public interface ITest{ int add(int a,int b); @@ -39,9 +46,16 @@ public class TestImpl implements ITest{ } ``` 5.消费者调用服务端接口 -例: + +在启动类上加入注解,加入注解MyRPC才能启动 +``` +//包路径为com.wherewego.rpc.config.annotation +@EnableMyRPC +``` + +测试代码,例: ``` -//使用myrpc提供的注解 +//使用myrpc提供的注解 在com.wherewego.rpc.config.annotation包下 @Reference private ITest test; public void test(){