code: private static File getExplodedWarFileDocumentRoot(File codeSourceFile) {
          log.debug("Code archive: " + codeSourceFile);
          if (codeSourceFile != null && codeSourceFile.exists()) {
              String path = codeSourceFile.getAbsolutePath();
              int webInfPathIndex = path.indexOf(File.separatorChar + "WEB-INF" + File.separatorChar);
              if (webInfPathIndex >= 0) {
                  path = path.substring(0, webInfPathIndex);
                  return new File(path);
              }
          }
          return null;
      }
docs: 获取解压后的代码对应的doc-root目录
  
  @param codeSourceFile 当前代码所处的文件
  @return 解压后的代码对应的doc-root目录