SpringBoot entry (four) ----- how to use monitoring, health checks, project information

Need to import-dependent actuator:
 		<!-- 监控中心 -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>

Then add the following configuration application.properties years, to avoid the user to access part of the monitoring address to access restricted

management:
  security:
    enabled: false

Then we can use / actuator to view a variety of information (monitoring, health, etc.), such as localhost: 8080 / actuator
Here Insert Picture Description

There are 10 kinds of people in the world, one is to understand binary, one is do not understand binary.

Thank you for watching, if not where to write your message, thank you.

Published 71 original articles · won praise 54 · views 420 000 +

Guess you like

Origin blog.csdn.net/weixin_43326401/article/details/104072484