Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. // this method print all managed beans by spring container
  2. public static void printManagedBeans(ApplicationContext ctx) {
  3.  
  4. String[] beanNames = ctx.getBeanDefinitionNames();
  5.  
  6. for (String beanName : beanNames) {
  7. ColorConsoleHelper.getGreenLog("bean is managed by spring " + beanName);
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement