How do we know bean is managed by spring container?For example,some bean maybe not scaned,and how do we know(some bean using @controller may not throw an error).Is any tool to scan the program memory and show all registered beans?Is there any way to query beans by name or other condition? That's what i want to know, i have been searching from google and nothing found.
Asked
Active
Viewed 834 times
2 Answers
2
You can get list of all beans managed by spring container using Application Context.
context.getBeanDefinationNames();

Naveen Patil
- 61
- 7