code: private static List<String> load(String path) {
          List<String> result = new ArrayList<>();
          try{
              InputStream in = null;
              LOGGER.info("加载资源："+path);
              if(path.startsWith("classpath:")){
                  in = AutoDetector.class.getClassLoader().getResourceAsStream(path.replace("classpath:", ""));
              }else{
                  in = new FileInputStream(path);
              }
              try(BufferedReader reader = new BufferedReader(new InputStreamReader(in,"utf-8"))){
                  String line;
                  while((line = reader.readLine()) != null){
                      line = line.trim();
                      if("".equals(line) || line.startsWith("#")){
                          continue;
                      }
                      result.add(line);
                  }
              }
          }catch(Exception e){
              LOGGER.error("加载资源失败："+path, e);
          }
          return result;
      }
docs: 加载文件资源
  @param path 文件路径
  @return 文件内容