4.2K Star 24.1K Fork 7K

GVP铭飞 / MCMS

 / 详情

配置微信插件运行报UnsatisfiedDependencyException:

已完成
创建于  
2020-04-07 11:44

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.

评论 (3)

cam725 创建了任务
cam725 关联仓库设置为铭飞/MCMS
展开全部操作日志

请问解决了吗

加一个方法
@citizenl
public class MyBeanFactoryPostProcessor implements BeanFactoryPostProcessor {
@加贝
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
((AbstractAutowireCapableBeanFactory) beanFactory).setAllowRawInjectionDespiteWrapping(true);
}
}

加一个方法
@citizenl
public class MyBeanFactoryPostProcessor implements BeanFactoryPostProcessor {
@加贝
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
((AbstractAutowireCapableBeanFactory) beanFactory).setAllowRawInjectionDespiteWrapping(true);
}
}

@东京不太热
请问在哪个位置添加?MSApplication??

铭飞 里程碑设置为5.0.1
铭飞 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(4)
1408797 airbe 1711980148
Java
1
https://gitee.com/mingSoft/MCMS.git
git@gitee.com:mingSoft/MCMS.git
mingSoft
MCMS
MCMS

搜索帮助

344bd9b3 5694891 D2dac590 5694891