PrintWriter out = response.getWriter();out.println(jsonStr)可以把数据写到客户端println方法会自动调用flush()方法print不会自动调用flush()方法write()方法不能把数据写到客户端