HttpServlet 怎么集成进来

    @Bean

    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

2020-05-12 15:42

文档中有过说明:
https://jfinal.com/doc/1-4

注意看第 12 小节的:12、添加 Filter、WebSocket、Servlet、Listener

热门反馈

扫码入社