sampleserviceclienttest.java
来自「spring+hibernate+struts 范例代码」· Java 代码 · 共 18 行
JAVA
18 行
package test.remote;
import com.caucho.hessian.client.HessianProxyFactory;
public class SampleServiceClientTest {
public static void main(String[] args) throws Exception {
HessianProxyFactory proxyFactory = new HessianProxyFactory();
ISampleService service = (ISampleService) proxyFactory.create(ISampleService.class,"http://localhost:8080/remote/sampleService");
System.out.println(service.doSomething("dde牛人"));
System.out.println("调用完成ok!");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?