Java Annotations Introduction

Java custom annotations are generally used with  interceptors  or  AOP . Using the custom annotations to design your own framework can make the code look very elegant. What is Annotations ? Java annotation is an annotation mechanism, introduced by jdk5.0. Classes, methods, variables, parameters and packages in the Java language can be labeled. Unlike the Javadoc, Annotation can obtain annotation content through reflection. When the compiler generates class files, annotations can be embedded in bytecode....

January 18, 2022 · 4 min · Gangjian Liu