add dependencies to pom
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency>
Then I found that only /health can be called, and other information is not visible.
Add in yml, you can see all the information.
management: security: enabled: false