adolphor / blog-comments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spring bean 的生命周期 — Bob的城堡

adolphor opened this issue · comments

commented

https://blog.adolphor.com/2021/09/06/01-spring-bean-life-cycle/

在传统的Java应用中,bean的生命周期很简单。使用Java关键字new进行bean实例化,然后该bean就可以使用了。一旦该bean不再被使用,则由Java自动进行垃圾回收。