有没有办法列出 Micronaut 应用程序的所有端点

Is there a way to list all endpoints of a Micronaut app

一个 micronaut 应用程序在本地适合我,但在另一个环境中却不行。我收到 Micronaut 错误(不是网络错误),提示我尝试访问的 URL 未定义。

{"message":"Not Found","_links":{"self":{"href":"/myApp/debug/loadVins","templated":false}},"_embedded":{"errors":[{"message":"Page Not Found"}]}}

有没有办法让我让 Micronaut 列出它识别的所有 URLs/Endpoints? (类似于Django中的debug模式)

如果您将 micronaut-management 添加为依赖项(请参阅 https://docs.micronaut.io/latest/guide/#management) you can access the /routes endpoint, see https://docs.micronaut.io/latest/guide/#routesEndpoint