springboot1.X中引入actuator依赖后我们就可以通过对应的endpoint查看与应用相关的信息,springboot2.X以后需进行如下配置才可访问:
management: endpoints: web: base-path: /actuator exposure: include: "*"
在springboot2.x的application.properties文件中单独暴露management.endpoints.web.base-path=/actuator
springboot1.X中引入actuator依赖后我们就可以通过对应的endpoint查看与应用相关的信息,springboot2.X以后需进行如下配置才可访问:
management: endpoints: web: base-path: /actuator exposure: include: "*"
在springboot2.x的application.properties文件中单独暴露management.endpoints.web.base-path=/actuator
微信扫码登录