1 概述
服务启动时,通过spring-boot-actuator 监控es等服务是否连接成功等
2 依赖
<!-- 服务监控 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<version>2.3.1.RELEASE</version>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
本文介绍了如何在SpringBoot项目中使用actuator依赖来监控服务启动时ES等服务的连接状态,包括了必要的依赖配置和排除logging模块。
353

被折叠的 条评论
为什么被折叠?



