Is there a way to print all the spring beans that are loaded on startup?I am using Spring 2.0.
Yes, get ahold of
ApplicationContext and call
You can get the context by:
Related: You can also detect each bean's registration by registering a
BeanPostprocessor bean. It will be notified for each bean.