Spring / Spring Beans
When is a Spring Singleton bean garbage collected?
Singleton beans are created when the Spring container starts and are destroyed when the Spring container stops. The reason is spring container always maintains a reference to it while it is also manually referenced anywhere in your code.
More Related questions...