pom.xml
<!--监控依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
application.properties
management.endpoints.web.exposure.include=*
其中health、beans、info等其他的都可以访问,就是 /autoconfig访问报404