code: public void addUrlPattern(UrlPattern urlPattern){
          try {
              URL url = new URL(urlPattern.getUrlPattern());
              String key = urlPrefix(url);
              List<UrlPattern> value = urlPatternMap.get(key);
              if (value == null) {
                  value = new ArrayList<>();
                  urlPatternMap.put(key, value);
              }
              value.add(urlPattern);
          } catch (Exception e) {
              LOGGER.error("URL规则添加失败：" + urlPattern.getUrlPattern(), e);
          }
      }
docs: 动态增加URL模式
  @param urlPattern URL模式