webservice只能用localhost访问,无法用ip地址访问的解决办法
在发布时不要用localhost+端口发布,发布时获取下服务器的IP地址InetAddress address = null;
try {
address = InetAddress.getLocalHost();
} catch (UnknownHostException e) {
e.printStackTrace();
}
String hostAddress = addre...
原创
2018-06-07 11:16:24 ·
11419 阅读 ·
4 评论