system-service-app 增加 actuator 监控端点

This commit is contained in:
YunaiV
2020-08-01 23:19:47 +08:00
parent c6c838d759
commit 1daf0dd8cc
3 changed files with 22 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>system-service-service</artifactId>
<artifactId>system-service-app</artifactId>
<dependencies>
<!-- RPC 相关 -->
<dependency>
@@ -28,6 +28,12 @@
<artifactId>mall-spring-boot-starter-system-error-code</artifactId> <!-- 错误码 -->
</dependency>
<!-- Web 相关 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <!-- 需要开启 Web 容器,因为 Actuator 需要使用到 -->
</dependency>
<!-- Registry 和 Config 相关 -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
@@ -50,6 +56,12 @@
<artifactId>mall-spring-boot-starter-mybatis</artifactId>
</dependency>
<!-- 监控相关 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- 工具类相关 -->
<dependency>
<groupId>org.springframework.boot</groupId>