String ip = "";
InetAddress addr;
try {
addr = InetAddress.getLocalHost();
ip = addr.getHostAddress().toString();
} catch (Exception e) {
e.printStackTrace();
}
String url = "http://" + ip + ":29080/webservices/hellworld";
System.out.println(url);
// Endpoint.publish(url, new HelloWorld());
InetAddress
最新推荐文章于 2023-08-22 20:55:09 发布