No unique bean of type [com.telecommunications.serviceimp.ServiceFactory] is defined 说明你的bean有二义性或者没有匹配到这个类型的bean,不能确定那个ServiceFactory可以注入,查看一下你的配置文件ServiceFactory类型的bean是不是有多个,如果是,的确需要多个,@Autowired 注解需要配合@Qualifier这个注解一块用说明那一个bean要注入给这个属性。