Annotation-Author

package xu.zhi.hua.testTestNg.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Author {

    /**
     * 作者名字
     * @return
     */
    public String name() default "";
}

你可能感兴趣的:(Annotation-Author)