From 95b320c0a47b2d6b9d4ee6178aa7260623322b2f Mon Sep 17 00:00:00 2001 From: kongming Date: Mon, 14 Jan 2019 14:58:44 +0800 Subject: [PATCH] prefer jax-rs annotation on impl and compatible with old version after luo's advice --- .../java/org/apache/dubbo/rpc/protocol/rest/RestProtocol.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dubbo-rpc/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/RestProtocol.java b/dubbo-rpc/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/RestProtocol.java index 6c24ca575ec..7f8bc79f401 100644 --- a/dubbo-rpc/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/RestProtocol.java +++ b/dubbo-rpc/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/RestProtocol.java @@ -90,7 +90,7 @@ public int getDefaultPort() { @Override protected Runnable doExport(T impl, Class type, URL url) throws RpcException { String addr = getAddr(url); - Class implClass = ApplicationModel.getProviderModel(url.getServiceKey()).getServiceInterfaceClass(); + Class implClass = ApplicationModel.getProviderModel(url.getServiceKey()).getServiceInstance().getClass(); RestServer server = servers.get(addr); if (server == null) { server = serverFactory.createServer(url.getParameter(Constants.SERVER_KEY, DEFAULT_SERVER));