code: private Map<String, List<UrlPattern>> toMap(List<UrlPattern> urlPatterns) {
          Map<String, List<UrlPattern>> map = new ConcurrentHashMap<>();
          for (UrlPattern urlPattern : urlPatterns) {
              try {
                  URL url = new URL(urlPattern.getUrlPattern());
                  String key = urlPrefix(url);
                  List<UrlPattern> value = map.get(key);
                  if (value == null) {
                      value = new ArrayList<>();
                      map.put(key, value);
                  }
                  value.add(urlPattern);
              } catch (Exception e) {
                  LOGGER.error("URL规则初始化失败：" + urlPattern.getUrlPattern(), e);
              }
          }
          return map;
      }
docs: 多个url模式可能会有相同的url前缀
  map结构+url前缀定位
  用于快速查找一个url需要匹配的模式
  
  @param urlPatterns url模式列表
  @return 以url前缀为key的map结构