How can I do Java annotation like @name("Luke") with no attribute inside parenthesis?

Viewed 27601

How I can do custom Java annotation with no attribute name inside parentheses?

I don't want this: @annotation_name(att=valor). I just want like in Servlets, i.e:

@WebServlet("/main")
3 Answers
Related