提交 e68f64cf 编写于 作者: 小傅哥's avatar 小傅哥

feat: 模拟RPC请求

上级 b8bbea7c
......@@ -38,7 +38,6 @@ public class RPCProxyBeanFactory implements FactoryBean<IUserService>, Runnable
@Override
public IUserService getObject() throws Exception {
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
Class<?>[] classes = {IUserService.class};
InvocationHandler handler = new InvocationHandler() {
......
......@@ -19,8 +19,9 @@ import javax.annotation.Resource;
@SpringBootTest
public class ApiTest {
// 直连模式;@DubboReference(interfaceClass = IUserService.class, url = "dubbo://127.0.0.1:20881", version = "1.0.0")
@DubboReference(interfaceClass = IUserService.class, version = "1.0.0")
// 直连模式;
@DubboReference(interfaceClass = IUserService.class, url = "dubbo://127.0.0.1:20881", version = "1.0.0")
// @DubboReference(interfaceClass = IUserService.class, version = "1.0.0")
private IUserService userService;
@Resource(name = "rpcProxyBeanFactory")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册