![](/img/trans.png)
[英]How can I get the version of the application (defined by tag version in pom.xml) in quarkus specially?
[英]How can I show the build and application version in quarkus application?
像 Spring Boot Actuator Info 端点一样,是否可以在 quarkus 应用程序中显示应用程序版本和构建信息?
尝试使用 Micrometer Metrics 库。 可能没有您正在寻找的所有指标和信息,但您会获得大量信息。
千分尺 - https://quarkus.io/guides/micrometer
SmallRye 健康 - https://quarkus.io/guides/smallrye-health - 健康检查
构建信息(Maven 目标) - https://quarkus.io/guides/maven-tooling#project-info
我想这些都应该有所帮助。
我认为目前 Quarkus 中没有类似的东西。 例如,您可能必须在 application.properties 中创建属性并将它们添加到响应中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.