<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> 引入actuator后发现 health可以正常展示。 但是发现beans无法展示 解决: 在application.properties里面加入配置: management.endpoints.web.exposure.include=*