public static boolean pathPattern(final String pathPattern, final String realPath) {
        PathPattern pattern = PathPatternParser.defaultInstance.parse(pathPattern);
        return pattern.matches(PathContainer.parsePath(realPath));
    }
Path pattern boolean.

@param pathPattern the path pattern
@param realPath the real path
@return the boolean
shenyu-plugin/shenyu-plugin-base/src/main/java/org/apache/shenyu/plugin/base/utils/PathMatchUtils.java