天天看点

openfire插件开发环境

创建java工程

SamplePlugin:

web-custom.xml 为空

plugin.xml

build.properties:

build.xml

 增加servlet

在web-custom.xml中增加:

打包发布后: 可以访问

( 也可以访问)

增加jsp

 在 web目录下增加sample-service.jsp

在plugin.xml中增加:

打包发布运行效果: