Annotation is created based on the interface. Adding '@' before the keyword interface to declare an annotation type.All annotations consist only method declarations.These methods act much like fields. 我们的第一个annotation 类型: // A simple annotation type. @interface MyAnnotation { String stringValue(); int intValue(); }