📄 demo.jsp
字号:
<%@ page import="com.caucho.hessian.client.HessianProxyFactory" %><%@ page import="example.MathService" %><%HessianProxyFactory factory = new HessianProxyFactory();// http://localhost:8080/resin-doc/protocols/tutorial/hessian-add/hessian/mathString url = ("http://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/hessian/math");MathService math = (MathService) factory.create(MathService.class, url);%><pre>3 + 2 = <%= math.add(3, 2) %>3 - 2 = <%= math.sub(3, 2) %>3 * 2 = <%= math.mul(3, 2) %>3 / 2 = <%= math.div(3, 2) %></pre>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -