Skip to content

Commit eb85f25

Browse files
committed
添加RPCMeta使用示例
1 parent d825df6 commit eb85f25

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
package com.github.wenweihu86.rpc.api;
22

3+
import com.github.wenweihu86.rpc.protocol.RPCMeta;
4+
35
/**
46
* Created by wenweihu86 on 2017/4/25.
57
*/
68
public interface SampleService {
9+
/**
10+
* 当需要定制serviceName和methodName时,用RPCMeta注解。
11+
* RPCMeta可选,默认是通过反射获取。
12+
*/
13+
@RPCMeta(serviceName = "SampleService", methodName = "sampleRPC")
714
Sample.SampleResponse sampleRPC(Sample.SampleRequest request);
815
}

0 commit comments

Comments
 (0)