public class BasicClient {
public static void main(String[] args) {
try {
String url = “http://localhost:8080/hessian”;
HessianProxyFactory factory = new HessianProxyFactory();
factory.setOverloadEnabled(true);
Basic basic = (Basic) factory.create(Basic.class, url);
System.out.println(basic.sayHello(“SW”));
}catch (Exception e){
e.printStackTrace();
}
}
hessian使用原理
最新推荐文章于 2024-09-05 09:54:06 发布