code: @RequestMapping("/web/frontend")
      public String webFrontend(HttpServletRequest request){
  
          Map<String, String> receives = new HashMap<>();
  
          // TODO 这里还是建议直接从request中获取map参数，兼容支付宝修改或增减参数
          for (AlipayField f : AlipayFields.WEB_PAY_RETURN){
              receives.put(f.field(), request.getParameter(f.field()));
          }
  
          String tradeStatus = receives.get(AlipayField.TRADE_STATUS.field());
          if (TradeStatus.TRADE_FINISHED.value().equals(tradeStatus)
                  || TradeStatus.TRADE_SUCCESS.value().equals(tradeStatus)){
              // 交易成功
              // TODO business logic
          }
  
          logger.info("web frontend notify params: {}", receives);
          logger.info("web frontend sign: {}", alipayService.notifyVerifyMd5(receives));
  
          return receives.toString();
      }
docs: 支付宝web前端跳转通知