我们目前正在使用Spring 3.2.8-RELEASE,在我们的代码中严重依赖@Autowired注释。在启动应用程序时,我们收到以下错误:
Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'XXXXX': Bean with name 'XXXXX' has been injected into other beans [XXXXX,XXXXX] in its raw version as part of a circular reference, but has eventually
been wrapped. This means that said other beans do not use the final version of the bean.
This is often the result of over-eager type matching - consider using 'getBeanNamesOfType' with the 'allowEagerInit' flag turned off, for example.
1)我们在bean依赖项中没有任何循环引用 2)该系统适用于所有开发机器(Windows和Linux机器的混合),测试服务器和我们的生产服务器之一。该错误仅发生在我们的某个服务器上。此服务器之间的唯一区别是使用的操作系统。在此服务器上,我们正在使用以下是此服务器的详细信息。
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.5 (Final)
Release: 6.5
Codename: Final