private static Set<String> readResources(final String path, final Class<?> cls) throws IOException {
        Enumeration<URL> urls = cls.getClassLoader().getResources(path);
        Set<String> files = new HashSet<>();
        while (urls.hasMoreElements()) {
            URL url = urls.nextElement();
            if (Objects.nonNull(url)) {
                String file = url.getFile();
                if (StringUtils.isNotEmpty(file)) {
                    files.add(file);
                }
            }
        }
        return files;
    }
readResources.
@param path path
@param cls cls
@return set
@throws IOException ioexception
shenyu-common/src/main/java/org/apache/shenyu/common/utils/VersionUtils.java