public PathMatcher excludePath(final String path) {
        validatePath(path);
        excludedPaths.add(path);
        return this;
    }
Any path exactly matching this string will be excluded. Use this method if you are excluding a specific path.

@param path the path to be excluded
@return this path matcher
pac4j-core/src/main/java/org/pac4j/core/matching/matcher/PathMatcher.java