Actuator endpoints of spring boot cannot be accessed

when learning springboot, add:

to pom.xml
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>
After

restart the project, it is basically inaccessible except / actuator/health and / actuator/info. Solve why?

Mar.03,2021

has been resolved. It should be that spring security is no longer allowed to be accessed except health and info in the project. After reading the official documents, add:

to application.properties.
management.endpoints.web.exposure.include=*

will be fine.
the following is a description of the official document:


http://localhost:/beans
Menu