yyy2535 commented on issue #3157:
URL:
https://github.com/apache/servicecomb-java-chassis/issues/3157#issuecomment-1173260768
使用的@RpcSchema注解
**组件A接口定义**
```
public interface BService {
boolean specificMethod(String specificParamName);
}
```
**微服务B接口实现**
```
@RpcSchema(schemaId = "BService")
public class BSerivceImpl implements BService {
@Override
public boolean specificMethod(String specificParamName) {
...
return true;
}
}
```
**微服务C、D注入**
```
@RpcReference(microserviceName = "B", schemaId = "BService")
private BService bService;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]