webservice底层使用Socket进行网络调用

服务端代码(其实tomcat的原理也是这样):

客户端代码:

原文地址:https://www.cnblogs.com/MessiAndDream/p/6110607.html