0

例如,我有以下代码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 生成的文档

但是,我希望groovydoc任务能够解析方法注释并像Spring 的 API 文档一样显示它们:

Sring API 文档

有没有办法配置groovydocGradle 任务来做到这一点,还是我需要使用另一个库或工具?

4

0 回答 0