Skip to content

Instantly share code, notes, and snippets.

@press0
Created December 8, 2016 00:20
Show Gist options
  • Save press0/1088e049a87a3b83763749471d59c207 to your computer and use it in GitHub Desktop.
Save press0/1088e049a87a3b83763749471d59c207 to your computer and use it in GitHub Desktop.
ApplicationContext ctx = SpringApplication.run(Application.class, args);
String[] beanNames = ctx.getBeanDefinitionNames();
Arrays.sort(beanNames);
for (String beanName : beanNames) {
System.out.println(beanName);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment