From 3597bd3429e9d181bdff173159d8ddd03d2233c5 Mon Sep 17 00:00:00 2001 From: qibaoguang Date: Sun, 1 Mar 2015 20:32:02 +0800 Subject: [PATCH] Update and rename 40. Endpoints to 40. Endpoints.md --- .../40. Endpoints | 0 .../40. Endpoints.md | 23 +++++++++++++++++++ 2 files changed, 23 insertions(+) delete mode 100644 V. Spring Boot Actuator: Production-ready features/40. Endpoints create mode 100644 V. Spring Boot Actuator: Production-ready features/40. Endpoints.md diff --git a/V. Spring Boot Actuator: Production-ready features/40. Endpoints b/V. Spring Boot Actuator: Production-ready features/40. Endpoints deleted file mode 100644 index e69de29..0000000 diff --git a/V. Spring Boot Actuator: Production-ready features/40. Endpoints.md b/V. Spring Boot Actuator: Production-ready features/40. Endpoints.md new file mode 100644 index 0000000..c688452 --- /dev/null +++ b/V. Spring Boot Actuator: Production-ready features/40. Endpoints.md @@ -0,0 +1,23 @@ +### 40. 端点 + +执行器端点允许你监控应用及与应用进行交互。Spring Boot包含很多内置的端点,你也可以添加自己的。例如,health端点提供了应用的基本健康信息。 + +端点暴露的方式取决于你采用的技术类型。大部分应用选择HTTP监控,端点的ID映射到一个URL。例如,默认情况下,health端点将被映射到/health。 + +下面的端点都是可用的: + +| ID | 描述 |敏感(Sensitive)| +| ---- | :----- | :----- | +|autoconfig|显示一个auto-configuration的报告,该报告展示所有auto-configuration候选者及它们被应用或未被应用的原因|true| +|beans|显示一个应用中所有Spring Beans的完整列表|true| +|configprops|显示一个所有@ConfigurationProperties的整理列表|true| +|dump|执行一个线程转储|true| +|env|暴露来自Spring ConfigurableEnvironment的属性|true| +|health|展示应用的健康信息(当使用一个未认证连接访问时显示一个简单的'status',使用认证连接访问则显示全部信息详情)|false| +|info|显示任意的应用信息|false| +|metrics|展示当前应用的'指标'信息|true| +|mappings|显示一个所有@RequestMapping路径的整理列表|true| +|shutdown|允许应用以优雅的方式关闭(默认情况下不启用)|true| +|trace|显示trace信息(默认为最新的一些HTTP请求)|true| + +**注**:根据一个端点暴露的方式,sensitive参数可能会被用做一个安全提示。例如,在使用HTTP访问sensitive端点时需要提供用户名/密码(如果没有启用web安全,可能会简化为禁止访问该端点)。