📅  最后修改于: 2022-03-11 14:56:34.953000             🧑  作者: Mango
// 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);
}