依赖注入的形式主要有三种,我分别将它们叫做(1)构造函数注入(ConstructorInjection);(2)设值方法注入(SetterInjection);(3)接口注入(Interface Injection)。