服务器和客户端的json数据交互(http/socket两种方式)
一、首先是Http方式 服务器端:@WebServlet("/service")public class ServiceServlet extends HttpServlet { private static final long serialVersionUID=1L; public void doGet(HttpServletRequest request,HttpS...