---
title: "spring boot中，health显示完整信息"
author: "tarsean"
date: "2018-04-08T11:09:59Z"
tags: []
categories: ["企业架构"]
slug: "spring-boot-health"
draft: false
lastmod: "2018-04-08T11:09:59Z"
id: 2415915
url: "https://tarsean.iteye.com/blog/2415915"
---

spring-boot2.0中，spring-boot-starter-actuator可以实现应用的监控。

web端点默认的监控端点只有health和info。

    spring boot中acurator的默认配置

management.endpoints.web.exposure.include=health,info  
management.endpoints.web.base-path=/actuator  
management.endpoint.health.show-details=never

    其中，只显示了概要信息，没有显示完整信息，如果要在访问/acurator/health时显示完整信息，需要增加如下配置：

   

```
management.endpoint.health.show-details=always
```