public ServletRegistrationBean servletRegistrationBean() {
com.zhuozhengsoft.pageoffice.poserver.Server poserver = new com.zhuozhengsoft.pageoffice.poserver.Server();
//设置PageOffice注册成功后,license.lic文件存放的目录
poserver.setSysPath(poSysPath);
ServletRegistrationBean srb = new ServletRegistrationBean(poserver);
srb.addUrlMappings("/poserver.zz");
srb.addUrlMappings("/posetup.exe");
srb.addUrlMappings("/pageoffice.js");
srb.addUrlMappings("/sealsetup.exe");
return srb;//
}
上面的代码是springboot的集成方式,com.zhuozhengsoft.pageoffice.poserver.Server 继承了 httpservlet
项目:JFinal
https://jfinal.com/doc/1-4
注意看第 12 小节的:12、添加 Filter、WebSocket、Servlet、Listener