• IDEA如何生成JavaDoc文档


    1、准备需要生成JavaDoc文档的类

    /**
     * 测试生成JavaDoc文档
     *
     * @author xiaomaomao
     * @version V1.0
     * @since V1.0
     */
    public class TestGenerateDoc {
        private Integer id;
        private String message;
    /** * 发送消息的方法 * @param id 接收信息人唯一标识 * @param fileName 文件名称 * @return sendOK 返回是否发送成功 * @throws FileNotFoundException 可能出出现文件不存在异常 */ public Boolean sendMessage(Integer id, String fileName) throws FileNotFoundException { Boolean sendOk = false; FileInputStream inputStream = new FileInputStream(fileName); String message = inputStream.toString(); if (message != null) { System.out.println("I will send message to" + id + "and the message content is" + message); sendOk = true; } return sendOk; } }

      

    2、tools---->GenerateJavaDoc---->可以看到如下界面:

      Generate JavaDoc scope:选择你需要生成JavaDoc文档的内容,我这里只需要将TestGenerateDoc.java这个类生成文档.

      Output directory:生成的JavaDoc文档会存放在哪里.

      Locale:zh_CN

      Other command line arguments:

        -encoding UTF-8 -charset UTF-8 -author -version -windowtitle "TestGenerateDocV1.0"    

        注意参数里面的TestGenerateDocV1.0就是你生成的JavaDoc存放的指定目录

    3、点击OK便可以生成JavaDoc文档

    4、生成的JavaDoc文档如下:

  • 相关阅读:
    topK问题 前K个高频元素 leetcode692
    反转链表 leetcode206
    关于IO多路复用的简单整理
    两数之和 leetcode1
    使用 jenkins 发布 前端 项目
    CentOS7 部署 nacos 集群
    JWT
    keepalived 的 unicast 单播模式
    使用 keepalived 高可用 nginx
    翻转二叉树 leetcode226
  • 原文地址:https://www.cnblogs.com/xiaomaomao/p/13475670.html
Copyright © 2020-2023  润新知