I would like to use annotations in my application. For this reason I create \"hello world\" for annotations:
follows example:
public class HelloAnnotatio
Add the following to your annotation:
@Retention(RetentionPolicy.RUNTIME)
From the javadoc for @Retention:
the retention policy defaults to
RetentionPolicy.CLASS
From the javadoc for RetentionPolicy:
CLASS
RUNTIME
SOURCE