springboot integrated actuator

Introduce actuator in pom.xml. 

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

 

Open the endpoint in yaml.

management:
  endpoints:
    enabled-by-default: true  # 暴露端点所有新
    web:
      exposure:
        include: '*'  # 以web方式暴露

 

So you can access the actuator in the browser

Guess you like

Origin blog.csdn.net/m0_37564426/article/details/113060947