<dependency> <groupId>org.infomas</groupId> <artifactId>annotation-detector</artifactId> <version>3.0.0</version> </dependency> import org.infomas.annotation.AnnotationDetector; import org.infomas.annotation.detector.AnnotationDetector.TypeReporter; public class AnnotationGenerator { public static void main(String[] args) throws IOException { String classPath = "path/to/your/class/library"; AnnotationDetector detector = new AnnotationDetector(new TypeReporter() { @Override public void reportTypeAnnotation(Class<?> annotation, String className) { } }); detector.detect(classPath); } } detector.acceptPackages("com.example.mypackage"); detector.detect();


上一篇:
下一篇:
切换中文