基础-JavaDoc
JavaDoc
- 课堂截图
![picture](https://img2020.cnblogs.com/blog/2657293/202112/2657293-20211204195739233-1194931538.jpg)
代码
package com.frey.base;
/**
* @author Frey Li
* @version 1.0
* @since 1.8 JDK的版本
*/
public class doc {
String name;
/**
*
* @param name
* @return
* @throws Exception
*/
public String test(String name) throws Exception {
return name;
}
}
CMD使用javadoc指令生成文档注释
javadoc -encoding UTF-8 -charset UTF-8 doc.java
- 注:中间参数是为了中文显示