使用Spring,可以通过接口类注入一个bean列表,如下所示:public class Service { private List<InterfaceType基于注释的方法对我来说是不可能的,因为服务类位于一个不能有spring依赖项的模块中。
我需要通过xml配置从外部使用这种机制。<bean id="service" clas
我有spring安全项目,我正在尝试为其中一个控制器从JavaConfig创建junit测试,但是当我使用@Autowired时我得到了异常:
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.secure.service.face.UserService] found for depen