Daftar semua kacang yang dikelola di musim semi

// 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);
}
Uninterested Unicorn