我有一个在 32 位机器上开发的 spring-osgi-application。在那里我可以毫无问题地构建我的捆绑包(例如:mvn clean package)。
我有一台新机器,一台 intel 64 位机器,但测试没有运行。它无法从被模拟的其他包中找到自动装配的依赖项(bean)。
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.yourtools.athene.store.AtheneStore] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:924)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:793)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)
... 34 more
我可以检查什么?谢谢