Garbage Collection of Spring Beans

为君一笑 提交于 2021-01-28 07:50:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!