1. Brief description
Supervision, it depends on what your program has, what it is running, what permissions and other things
2. How to use
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
Settings in application.properties
#有权利访问各种监管
management.endpoints.web.exposure.include=*
#打开shutdown功能(发送请求让Java程序关闭)
management.endpoint.shutdown.enabled=true
1) Some simple things
For example, if we visit http://localhost:8080/actuator/beans
any bean you have, it will be displayed here,
and for example, the visit will http://localhost:8080/actuator/env
display environment variables.
2)shutdown
I personally think that the coolest thing is shutdown, which can be used to close the Java program through the browser, but only after sending a post request.
http://localhost:8080/actuator/shutdown