配置如下:
field.doc[#maybe]=groovy:it.docs("maybe").collect{helper.resolveLink(it)}.collect{"可能是:\n\n```json\n" + it.toJson(true) +"\n```\n\n"}.join("\n")
使用如下:
/**
* @maybe {@link UserInfo}
* @maybe {@link java.lang.String}
*/
public Object target;