code: private static List<String> loadClasspathResource(String resource, ResourceLoader resourceLoader, String resourcePaths) throws IOException{
          List<String> result = new ArrayList<>();
          LOGGER.info("类路径资源："+resource);
          Enumeration<URL> ps = AutoDetector.class.getClassLoader().getResources(resource);
          while(ps.hasMoreElements()) {
              URL url=ps.nextElement();
              LOGGER.info("类路径资源URL："+url);
              if(url.getFile().contains(".jar!")){
                  //加载jar资源
                  result.addAll(load("classpath:"+resource));
                  continue;
              }
              File file=new File(url.getFile());
              boolean dir = file.isDirectory();
              if(dir){
                  //处理目录
                  result.addAll(loadAndWatchDir(file.toPath(), resourceLoader, resourcePaths));
              }else{
                  //处理文件
                  result.addAll(load(file.getAbsolutePath()));
                  //监控文件
                  watchFile(file, resourceLoader, resourcePaths);
              }
          }
          return result;
      }
docs: 加载类路径资源
  @param resource 资源名称
  @param resourceLoader 资源自定义加载逻辑
  @param resourcePaths 资源的所有路径，用于资源监控
  @return 资源内容
  @throws IOException