fw-boot-admin
介紹
fw-boot-admin基於 Spring Boot 2.1.6 、 bootadmin 、security 的監控系統demo
**如果需要查詢eureka版的,請移步https://blog.csdn.net/bore1994/article/details/103291639
軟件架構
- fw-boot-admin 根目錄(啓動順序不用關心)
- fw-boot-admin-server admin監控server端
- fw-boot-client-a 客戶端A
- fw-boot-client-b 客戶端B
安裝教程
- 先拉代碼
git clone https://github.com/xuyisu/fw-boot-admin.git
或
git clone https://gitee.com/gitxys/fw-boot-admin.git
- 代碼如圖所示
- 啓動fw-boot-admin-server
- 瀏覽器輸入
localhost:8762
查看監控信息 賬號密碼:admin admin
- 登陸完成之後,進入監控的信息頁面
6. 可以看到具體的監控信息,如機器配置信息、請求路徑、jvm等信息
說明
- fw-boot-admin-server中添加了郵件的配置,主要的pom內容如下
<dependencies>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-server</artifactId>
<version>2.1.6</version>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-server-ui</artifactId>
<version>2.1.6</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
</dependencies>
server 段的郵件配置(自己註冊申請賬號)
server:
port: 8762
spring:
application:
name: fw-boot-admin
security:
user:
name: admin
password: admin
boot:
admin:
ui:
title: ${spring.application.name}
#郵件配置開始
notify:
mail:
from: ------@163.com #這個如果沒有的話,發郵件會報錯
to: -----@qq.com
mail:
host: smtp.163.com
username: -----@163.com
password: -----
這樣生產如果應用下線,可以收入如下郵件內容,供預警使用
項目點贊
Git:https://github.com/xuyisu/fw-boot-admin
Gitee:https://gitee.com/gitxys/fw-boot-admin