code: public void bindServer(HttpServletRequest request, HttpServletResponse response){
          PrintWriter pw = null;
          try {
              pw = response.getWriter();
          } catch (IOException e) {
              e.printStackTrace();
          }
          if(StrUtil.isBlank(getToken()) || StrUtil.isBlank(getAESKey()) || StrUtil.isBlank(getCropId())){
              pw.write("");
              pw.flush();
              pw.close();
          }
          try {
              WXBizMsgCrypt pc = new WXBizMsgCrypt(getToken(), getAESKey(), getCropId());
              String echoStr = pc.verifyUrl(request.getParameter("msg_signature"), request.getParameter("timestamp"), request.getParameter("nonce"), request.getParameter("echostr"));
              pw.write(echoStr);
              pw.flush();
              pw.close();
          } catch (AesException e) {
              e.printStackTrace();
              pw.write("");
              pw.flush();
              pw.close();
          }
      }
docs: 绑定服务器的方法
  @param request 请求
  @param response 响应