Can I write annotations in Groovy?
I know I can annota开发者_如何学编程te my classes in Groovy with annotations, but can I write the annotation itself in Groovy (as opposed to just using annotation written in Java)? If so, from what version?
You can define annotations in Groovy.
See more: http://docs.groovy-lang.org/latest/html/documentation/#_annotation
精彩评论