We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d825df6 commit eb85f25Copy full SHA for eb85f25
src/test/java/com/github/wenweihu86/rpc/api/SampleService.java
@@ -1,8 +1,15 @@
1
package com.github.wenweihu86.rpc.api;
2
3
+import com.github.wenweihu86.rpc.protocol.RPCMeta;
4
+
5
/**
6
* Created by wenweihu86 on 2017/4/25.
7
*/
8
public interface SampleService {
9
+ /**
10
+ * 当需要定制serviceName和methodName时,用RPCMeta注解。
11
+ * RPCMeta可选,默认是通过反射获取。
12
+ */
13
+ @RPCMeta(serviceName = "SampleService", methodName = "sampleRPC")
14
Sample.SampleResponse sampleRPC(Sample.SampleRequest request);
15
}
0 commit comments