server.java

来自「基于eclipse环境下开发的cxf例程」· Java 代码 · 共 24 行

JAVA
24
字号
package demo.hw.server;import javax.xml.ws.Endpoint;public class Server {    protected Server() throws Exception {        System.out.println("Starting Server");        Object implementor = new GreeterImpl();        String address = "http://localhost:9000/SoapContext/SoapPort";        Endpoint.publish(address, implementor);    }    public static void main(String args[]) throws Exception {        new Server();        System.out.println("Server ready...");        Thread.sleep(5 * 60 * 1000);        System.out.println("Server exiting");        System.exit(0);    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?