org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'wxFileAction': Unsatisfied dependency expressed through field 'fileBiz'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'wxFileBizImpl': Bean with name 'wxFileBizImpl' has been injected into other beans [netMenuBizImpl,newsBiz,msgService,subscribeService] 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.
请问解决了吗
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
加一个方法
@citizenl
public class MyBeanFactoryPostProcessor implements BeanFactoryPostProcessor {
@加贝
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
((AbstractAutowireCapableBeanFactory) beanFactory).setAllowRawInjectionDespiteWrapping(true);
}
}
@东京不太热
请问在哪个位置添加?MSApplication??
登录 后才可以发表评论