Common annotations in Java
1, the JDK comes with annotations @override @Deprecated @Suppvisewarnings
Common third-party annotations
Spring: @Autowired @Service @Repository
Mybatis: @InsertProvider @UpdateProvider @Options
Classification of annotations:
According to the operating mechanism of:
SOURCE annotations: Annotations only exist in the source code, compiled into a. class file will not exist;
Compile-time annotations: Annotations are present in both the source code and the. class file (the three annotations (@Override @Deprecated @Suppvisewarnings) that come with the JDK are compile-time annotations and only work at compile time)
Runtime Annotations: Also works at run time, even annotations that affect the running logic (@Autowired)
Points by Source:
Annotations from the JDK's own
Third-party annotations
Our custom annotations
SOURCE annotations: Annotations for callouts
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Common annotations in Java