java - 如何将接口加载为从黄瓜中的父模块自动装配的
问题描述
我能够加载所有父模块 applicationContext bean 定义。但是,当我@Autowired
在其中一个接口上使用时,出现以下异常:
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'automationUtils': Unsatisfied dependency expressed through field 'testClient'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.test.clients.testClient' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
任何人都可以在这方面提供帮助。
解决方案
推荐阅读
- sql - 如何在 Oracle 数据库中匹配此数据
- c# - 如何在运行时更新纹理
- angular - Angular Material:mat-error仅在触摸控制时显示
- shell - 无法从 Informatica PowerCenter 运行“/usr/bin/sudo myscript.sh”
- javascript - 我可以使用 event.keyCode 得到一个句子吗?
- odoo - 如何使用 t-if 在行号中创建条件
- c# - 如果全局复制,Microsoft.Azure.CosmosDB.Table 是否会自动选择到 cosmos DB 的最低延迟路由?
- java - JAVA:如何减去当前时间和已存储在数据库中的数据时间。
- qt - How to append QFile to QList
- javascript - 在字符串和列表中查找匹配字符串并替换为 html 标签