admin管理员组

文章数量:1534194

1.报错内容:
Error creating bean with name ‘metaTableColumnsServiceImpl’: Bean with name ‘metaTableColumnsServiceImpl’ has been injected into other beans [metaTableServiceImpl] 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 ‘getBeanNamesForType’ with the ‘allowEagerInit’ flag turned off, for example.
hua

2原因: metaTableColumnsServiceImpl类中注入了 metaTableServiceImpl, 而在 metaTableServiceImpl类中也注入了 metaTableColumnsServiceImpl,从而引起该异常。 (循环引用)

3、解决: metaTableColumnsServiceImpl类注入 metaTableServiceImpl时,增加注解 @Lazy ,反之同理。

4、@Lazy 注解路径为: org.springframework.context.annotation.Lazy 。

本文标签: 报错beanExceptionSpringxxx