改变eureka server中注册的服务的健康检测方式(接入spring-boot-actuator模块)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/guyue35/article/details/86606582

改变eureka server中注册的服务的健康检测方式 - xiao_jun_0820的专栏 - CSDN博客
https://blog.csdn.net/xiao_jun_0820/article/details/77991963

验证spring-boot-actuator模块的/health端点是否检测mysql, redis的连接情况

1. 正常启动项目后

2. 请求服务的/health接口, 可以看到该服务的状态为up

3.手工结束mysql/redis进程后, 再次请求接口, 都能发现状态为down. 假如设置debug级别的日志, 可以看到

 

猜你喜欢

转载自blog.csdn.net/guyue35/article/details/86606582