Print all the Spring beans that are loaded

前端 未结 8 1706
说谎
说谎 2020-11-28 03:05

Is there a way to print all the spring beans that are loaded on startup?I am using Spring 2.0.

8条回答
  •  清酒与你
    2020-11-28 04:00

    With Spring Boot and the actuator starter

    
      org.springframework.boot
      spring-boot-starter-actuator
    
    

    you can check the endpoint /beans

提交回复
热议问题