/actuator/beans监控bean

在springboot中,加入依赖

<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

启动项目
在地址栏输入http:ip地址:端口号/启动上下文/actuator/beans可以查看项目中创建的bean信息
若是出现404
在application.yml配置文件中,添加

management:
  endpoints:
    web:
      exposure:
        include : "*"

或者是在application.properties中添加

management.endpoints.web.exposure.include = *

你可能感兴趣的:(SpringBoot,spring,boot)