Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // this method print all managed beans by spring container
- public static void printManagedBeans(ApplicationContext ctx) {
- String[] beanNames = ctx.getBeanDefinitionNames();
- for (String beanName : beanNames) {
- ColorConsoleHelper.getGreenLog("bean is managed by spring " + beanName);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement