【injected】...hasbeeninjectedintootherbeans[userLogService]initsraw

发布时间:2021-03-24 02:23:04

在spring配置日志的时候出现如下异常,org.springframework.beans.factory.BeanCurrentlyInCreationException:Error creating bean with name 'userLogDAO':Bean with name 'userLogDAO' has been injected into other beans [userLogService] 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. 英语

网友回答

【答案】 Bean with name 'userLogDAO'注入的时候别重复了
以上问题属网友观点,不代表本站立场,仅供参考!