title: Spring boot actuator MySQL database health check
body: <p>I have designed one demo spring boot application CRUD operation with MySQL database. My application.properties file is as follow.</p>
  
  <pre><code>spring.boot.admin.url=http://localhost:8081
  spring.datasource.url= jdbc:mysql://localhost:3306/springbootdb
  spring.datasource.username=root
  spring.datasource.password=admin
  endpoints.health.sensitive=false
  management.health.db.enabled=true
  management.health.defaults.enabled=true
  management.health.diskspace.enabled=true
  spring.jpa.hibernate.ddl-auto=create-drop
  </code></pre>
  
  <p>POM.xml for the spring actuator is as follow.</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;de.codecentric&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-admin-starter-client&lt;/artifactId&gt;
      &lt;version&gt;1.3.4&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>When I try to hit the url "<a href="http://localhost:8080/health" rel="noreferrer">http://localhost:8080/health</a>", I am getting {"status":"UP"} as response. I want to monitor my database (MySQL) with spring boot actuator. I want see my database status.</p>
  
  <p>Can anyone please help ?</p>