问题
How the the objects managed by spring are garbage collected? Java garbage collector can find the normal objects (I mean I have not injected them via dependency injection).
How does the garbage collector collect spring beans? Since it cannot track them via stack. I would like the gc to garbage collect the spring beans that not being used.
来源:https://stackoverflow.com/questions/45757225/garbage-collection-of-spring-beans