Commit eb4be581 authored by 张大伟's avatar 张大伟

init

parent 23a6b8e1
# spring-boot 应用监控 # spring-boot 应用监控
+ 该服务默认端口 + 该服务默认端口8788
\ No newline at end of file + 邮件通知只需要修改对用的服地址,用户名和密码即可
+ 如果需要自定义通知,修改CustomNotifier类即可,继承AbstractStatusChangeNotifier类
### 客户端集成
+ 引入maven依赖
```$xslt
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-client</artifactId>
</dependency>
```
+ 增加配置
```$xslt
spring.boot.admin.client.url=http://localhost:8788
management.endpoints.web.exposure.include=*
management.endpoint.health.show-details=always
```
最好写上服务名称,否则发送邮件的时候不知道是哪个服务挂了
```$xslt
spring.application.name= 服务名称
```
### 运行
启动server端服务,访问 http://ip:8788/ 即可
![](img/clients.PNG)
![](img/detial.PNG)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment