如何方便的在JFinal中添加WebServer接口

2024-11-05 02:22:11
推荐回答(1个)
回答1:

public void configPlugin(Plugins me) {
JopPlugin jop = new JopPlugin();
jop.addService("1.0", "hello", "/hello");
jop.addService("1.0", "user", "/user");
jop.extendsService("2.0","1.0");//版本2继承自版本1
jop.addMethod("2.0", "user.add", "/user/addV2");//版本2修改的服务
jop.setAppSecretManager(new SampleAppSecretManager());//安全认证服务
me.add(jop);
}