javaDoc package com.pg.base; /** * @author PG * @version 1.0 * @since 1.8 */ public class Doc { String name; /** * @author PG * @param name * @return * @throws Exception */ public String test(String name) throws Exception{ return name; } //命令行 javadoc -encoding UTF-8 -charset UTF-8 Doc.java }