应用信息 (info)
原文:https://docs.spring.io/spring-boot/api/rest/actuator/info.html
info 端点显示任意应用信息。
检索应用信息
向 /actuator/info 发出 GET 请求:
$ curl 'http://localhost:8080/actuator/info' -i -X GET
响应内容取决于配置的 InfoContributor。Spring Boot 自动配置的贡献者可以提供:
git:Git 提交信息(来自git.properties)。build:构建信息(来自build-info.properties),包含 group、artifact、name、version、time。java:Java 运行时信息(版本、vendor 等)。os:操作系统信息(名称、架构、版本)。process:进程信息(PID)。ssl:SSL 信息(证书链)。
也可以通过 info.* 属性添加自定义信息,例如 info.app.name=MyApp。