private Set<Resource> findClasspathResource(URL url, String findDirPath, String subPattern) {
        Set<Resource> resources = new HashSet<Resource>();
        if (subPattern.contains("*")) { // 匹配的所有文件
            File[] files = new File(url.getFile()).listFiles();
            if (files == null) {
                return resources;
            }
            for (File file : files) {
                if (isMatch(file.getName(), subPattern)) {
                    resources.add(new Resource(file));
                }
            }
        } else { // 单一文件
            findDirPath = processPath(findDirPath);
            resources.add(new Resource(findDirPath));
        }
        return resources;
    }