jetbrick-webmvc/src/main/java/jetbrick/web/mvc/router/UrlTemplate.java
public boolean match(String[] urlSegments, PathVariables pathVariables) {
        Validate.isTrue(urlSegments.length == matchers.length);

        for (int i = 1; i < matchers.length; i++) {
            if (!matchers[i].match(urlSegments[i], pathVariables)) {
                pathVariables.clear(); // 注意：不匹配的情况下，需要清除此次匹配的内容
                return false;
            }
        }
        return true;
    }
public boolean match(String[] urlSegments, PathVariables pathVariables) {
        Validate.isTrue(urlSegments.length == matchers.length);

        for (int i = 1; i < matchers.length; i++) {
            if (!matchers[i].match(urlSegments[i], pathVariables)) {
                pathVariables.clear(); // 注意：不匹配的情况下，需要清除此次匹配的内容
                return false;
            }
        }
        return true;
    }
和实际的 URL 进行匹配，并返回成功匹配的参数(pathVariables)