我从经验上发现了这一点
Endpoint endpoint1 = Endpoint.create(new Ping());
endpoint1.publish("http://0.0.0.0:8080/ws/ping");
Run Code Online (Sandbox Code Playgroud)
绑定到当前计算机上的所有网络接口(而不仅仅是localhost - 127.0.0.1或主机名),但我无法找到说明这是有保证的文档.
问题:在Java中定义绑定到0.0.0.0将始终绑定到所有网络接口?