The article directories

  • 1. Document comments
  • 2. Common Javadoc labels

1. Document comments

  • Annotated content can be provided by tools in the JDKjavadocThe analysis, the generation of a set of web files in the form of the description of the program, generally written in the class.
  • The basic format
Javadoc -d Folder name -xx-yy demo1.javaCopy the code

Xx and YY indicate javadoc tags used in Java code, such as @author and @version

  • Examples of application
/ * * *@author xdr630
 * @version1.0 * /
public class Comment1 {
    public static void main(String[] args) {}}Copy the code
javadoc -d D:\JavaSE_Test\temp -author -version Comment1.java
Copy the code

  • Open index. HTML



2. Common Javadoc labels

  • The Javadoc tool software recognizes the following tags: