Spring基于xml注入bean的几种方式 2024年4月4日 作者 admin Set方法注入; 构造器注入:①通过index设置参数的位置;②通过type设置参数类型; 静态工厂注入; 实例工厂;