添加SpringBoot Admin监控中心支持

This commit is contained in:
macro
2019-10-17 17:26:37 +08:00
parent 47eaa3a5af
commit 02a2509530
14 changed files with 219 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ spring:
host: localhost # Redis服务器地址
database: 0 # Redis数据库索引默认为0
port: 6379 # Redis服务器连接端口
password: # Redis服务器连接密码默认为空
password: 123456 # Redis服务器连接密码默认为空
jedis:
pool:
max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
@@ -48,4 +48,12 @@ eureka:
fetch-registry: true
service-url:
defaultZone: http://localhost:8001/eureka/
management: #开启SpringBoot Admin的监控
endpoints:
web:
exposure:
include: '*'
endpoint:
health:
show-details: always