在用Spring Boot2.x Actuator监控应用时开启所有端点:
在.properties文件中:
management.endpoints.web.exposure.include=*
在yaml文件中:
management: endpoints: web: exposure: include: '*'
*必须要用单引号,否则会报错。
在用Spring Boot2.x Actuator监控应用时开启所有端点:
在.properties文件中:
management.endpoints.web.exposure.include=*
在yaml文件中:
management: endpoints: web: exposure: include: '*'
*必须要用单引号,否则会报错。