1

我正在将我的代码从 3.5.1 迁移到 3.6.2,并且我还使用对象存储来存储其他场景的所有失败记录。我已经从“安装新软件”下载了新的对象存储(我看到只有社区版本可用,如果企业版也发布了 3.6.2 运行时的对象存储,请告诉我)。

当我运行我的应用程序时,我遇到了异常

Error creating bean with name 'ObjectStore': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.mule.api.registry.Registry org.mule.modules.objectstore.ObjectStoreConnector.registry; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.mule.api.registry.Registry] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.inject.Inject()} 当我尝试在对象存储上创建一个单独的小实用程序进行测试时,它工作正常,但在我现有的代码中,当我添加对象存储时,它显示上述错误。

请指教,

@TyroneVillaluna

干杯,BeSolver

4

1 回答 1

0

检查您的项目并确保您没有使用上下文扫描/弹簧组件扫描或注释配置......

如果您正在使用它,那么您可以尝试在没有 mule 包的情况下禁用扫描...

于 2015-08-26T11:40:30.807 回答