(第3講)bean的生命週期

Servlet -> servlet生命週期 init() destory()java java對象生命週期.  post   ①      實例化(當咱們的程序加載beans.xml文件),把咱們的bean(前提是scope=singleton)實例化到內存spa ②      調用set方法設置屬性xml ③      若是你實現了bean名字關注接口(BeanNameAware)則,能夠經過
相關文章
相關標籤/搜索