hengboy / spring-cloud-chapter

Spring Cloud Enterprise Core Technology, Corresponding to the Special Subject Source of the Brief Book "Spring Cloud Core Technology"
14 stars 6 forks source link

Actuator自定义节点路径 & 监控服务自定义配置 - 程序员 - 恒宇少年 | SpringBoot | SpringCloud | Java - 个人博客 #162

Open hengboy opened 4 years ago

hengboy commented 4 years ago

http://blog.yuqiyu.com/springboot-actuator-change-mapping.html

既然Actuator给我们内置提供了节点映射,我们为什么还需要进行修改呢? 正因为如此我们才需要进行修改!!! 路径都是一样的,很容易就会暴露出去,导致信息泄露,发生一些无法估计的事情,如果我们可以自定义节点的映射路径或者自定义监控服务的管理信息,这样就不会轻易的暴露出去,Actuator已经为了们提供了对应的方法来解决这个问题,下面我们来看下吧。