Skip to content

Commit

Permalink
第十四篇:强大的 actuator 服务监控与管理
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed May 24, 2018
1 parent cccf278 commit e7bae72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import org.springframework.boot.actuate.health.Health;
import org.springframework.stereotype.Component;

import java.util.Hashtable;

/**
* <p>自定义健康端点</p>
* <p>功能更加强大一点,DataSourceHealthIndicator / RedisHealthIndicator 都是这种写法</p>
Expand Down
2 changes: 2 additions & 0 deletions chapter13/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# 描述信息
info.blog-url=http://blog.battcn.com
info.author=Levin
info.version=@project.version@


# 加载所有的端点/默认只加载了 info / health
management.endpoints.web.exposure.include=*
Expand Down

0 comments on commit e7bae72

Please sign in to comment.