zoukankan      html  css  js  c++  java
  • java cxf webservice 监听所有IP

    public void StartWebService() throws Exception
        {
            JettyHTTPServerEngineFactory eg = new JettyHTTPServerEngineFactory();
            eg.createJettyHTTPServerEngine(9000,"http");
            
            
            WebServiceMethod webServiceMethod = new WebServiceMethod();
            ServerFactoryBean svrFactory = new ServerFactoryBean();
            svrFactory.setServiceClass(WebServiceMethod.class);
            svrFactory.setAddress("http://localhost:9000/Hello");
            svrFactory.setServiceBean(webServiceMethod);
            // svrFactory.getServiceFactory().setDataBinding(new
            // AegisDatabinding());    
            svrFactory.create();
        }


    http://cxf.547215.n5.nabble.com/Virtual-host-with-jetty-standalone-RS-WS-need-help-td3414715.html

    From Java, I THINK you can do something like:

    bus.getExtention(JettyHTTPServerEngine.class)
         .createJettyHTTPServerEngine(null, 8080, "http");

    and that will create the connector for the port on all hosts, not the one for
    the passed in host.    Not 100% sure though.
     

     

  • 相关阅读:
    vue中handsontable 使用
    vue项目在APP禁止页面缩放
    SuperAgent使用文档
    echart 图表自定义样式
    vue router-link子级返回父级页面
    浏览器的多线程
    gzip压缩
    清除浮动的方法
    vue-router的hash和history模式的区别
    Docker镜像+nginx 部署 vue 项目
  • 原文地址:https://www.cnblogs.com/baishahe/p/2020734.html
Copyright © 2011-2022 走看看