0%

注入: 通过 spring 的配置文件,为成员变量赋值。

Set 注入: Spring 调用 set 方法,通过配置文件为成员变量赋值。

构造注入: Spring 调用构造方法,通过配置文件,为成员变量赋值。

阅读全文 »