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