我可以在 Groovy 中编写注释吗?

Dan*_*Dan 5 groovy annotations

我知道我可以在 Groovy 中使用注释来注释我的类,但是我可以在 Groovy 中编写注释本身吗(而不是仅使用用 Java 编写的注释)?如果有,从什么版本开始?

小智 5

您可以在 Groovy 中定义注释。

查看更多: http ://docs.groovy-lang.org/latest/html/documentation/#_annotation