IoC容器裝配Bean(xml配置方式)(Bean的生命週期)

1、Spring管理Bean,實例化Bean對象 三種方式 第一種:使用類構造器實例化(默認無參數) 1 package cn.itcast.spring.initbean; 2 3 /** 4 * 使用構造方法 實例化 5 * 6 * @author seawind 7 * 8 */ 9 public class Bean1 { 10 11 } 12 13
相關文章
相關標籤/搜索