@@ -17,6 +17,12 @@
<dependencies>
+ <!--监控-->
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-actuator</artifactId>
+ </dependency>
+
<!-- spring-boot-devtools -->
<dependency>
<groupId>org.springframework.boot</groupId>
@@ -9,7 +9,7 @@ server:
--- # 监控中心配置
spring.boot.admin.client:
# 增加客户端开关
- enabled: false
+ enabled: true
url: http://localhost:9090/admin
instance:
service-host-type: IP