Beans

The beans endpoint provides the details about the beans that are loaded into the Spring context. This is useful in debugging any problems related to Spring context.

An extract from the response of the /application/beans endpoint is shown below:

  {     "bean": "basicController",     "aliases": [],     "scope": "singleton",     "type": "com.mastering.spring.springboot.      controller.BasicController",     "resource": "file [/in28Minutes/Workspaces/      SpringTutorial/mastering-spring-chapter-5-6-        7/target/classes/com/mastering/spring/springboot/      controller/BasicController.class]",      "dependencies": [                     "messageSource"                    ]   },   {      "bean": "todoController",      "aliases": [],      "scope": "singleton",      "type": "com.mastering.spring.springboot.       controller.TodoController", "resource": ...

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.