我想创建一个注释处理器,它将从源代码中的javadoc生成配置引用。我希望能够在源代码中注释配置属性并提取javadoc,以便它可以作为配置参考材料发布。
例如。如果我有一个类似的注释..
/**
* This is to test annotation processor to extract javadoc.
* <p>
* I am trying to extract the javadoc whenever there is an annotation @ConfigProperty.
* <p>
* This is to test annotation processor to extract javadoc.
*/
@ConfigProperty(component="XYZ", section="some section")
public static final String TEST = "my test annotation";
示例输出