<dubbo:reference id="helloService" interface="com.example.HelloService" timeout="1000" />@Reference(version = "1.0.0", timeout = 1000)
private HelloService helloService;<dubbo:service interface="com.example.HelloService" ref="helloService" timeout="1000" />@Service(version = "1.0.0", timeout = 1000)
public class HelloServiceImpl implements HelloService {
// 实现方法
}<dubbo:reference id="helloService" interface="com.example.HelloService">
<dubbo:method name="sayHello" timeout="1000" />
</dubbo:reference>@Reference(version = "1.0.0")
private HelloService helloService;
@DubboMethod(timeout = 1000)
public String sayHello(String name);dubbo.reference.com.example.HelloService.timeout=1000原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。