Common annotations in Java

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.