不在根上下文中使用 Eclipse Microprofile (OpenLiberty)

Using Eclipse Microprofile NOT on root context (OpenLiberty)

我在 open liberty 上使用 eclipse microprofile (2.1) 功能。 但是所有功能都在根路径(例如 /health)上 运行。 我想在其他上下文中使用它,例如“/app”。

是否可以为此进行配置(可能在 server.xml 上)? 我找不到任何东西。

不是:localhost:8090/health 但我想要:localhost:8090/app/health

使用 MicroProfile 时,期望您为每个运行时部署一个应用程序(微服务),因此它指定端点用于整个运行时。这是最新规范的摘录,现在有两个健康端点:

"The MicroProfile Health Check architecture consists of two /health/ready and /health/live endpoints in a MicroProfile runtime that respectively represent the readiness and the liveness of the entire runtime."

因此,无法控制端点。如果有损坏的用例,我相信 MicroProfile and/or Open Liberty 社区会接受更改。