Answers for "list all managed beans in spring"

0

list all managed beans in spring

// Auto Wire App Context
@Autowired
private ApplicationContext appContext;

// In chosen method
// Get Beans from AppContext
String[] beans = appContext.getBeanDefinitionNames()

// Iter
for (String bean : beans) {
	System.out.println(bean);
}
Posted by: Guest on September-03-2021

Code answers related to "list all managed beans in spring"

Browse Popular Code Answers by Language