例如,我有以下代码UserController.groovy
:
/**
* Retrieves all users from the database.
*
* @return A list of all users from the database.
*/
@GetMapping
@ApiOperation(value = 'Retrieves all users from the database.')
ResponseEntity<List<UserEntity>> get() {
ResponseEntity.ok().body(userService.getAllUsers())
}
...当由 Gradle 的groovydoc
任务生成时,会产生以下内容:
但是,我希望groovydoc
任务能够解析方法注释并像Spring 的 API 文档一样显示它们:
有没有办法配置groovydoc
Gradle 任务来做到这一点,还是我需要使用另一个库或工具?