线上的项目几天没跑,再跑就异常了: Error creating bean....
简直日了够了。
什么都没改。。。。。。
找了好多文章说是bean相互调用了。A调B,B调A。
总之吧,我是在
Bean with name 'XXX' has been injected into other beans [XXX] 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.
找第二个XXX文件,在报异常的那个bean的@autowired下面加上@Lazy
不停加,只要有那个报异常的bean就加上@Lazy
然后就可以启动了,什么原因导致的暂时不知道。