美文网首页
Spring-mybatis 1.2.2的一个警告

Spring-mybatis 1.2.2的一个警告

作者: 帅气小伙 | 来源:发表于2017-12-25 10:55 被阅读63次

    困扰了差不多一个星期的警告,必须记录一下。

    WARN 43180 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'subCountryMapper' defined in file [/tt/fsm/target/classes/com/lmtest/fsm/mapper/SubCountryMapper.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sqlSessionFactory': Requested bean is currently in creation: Is there an unresolvable circular reference?

    1.2.2存在的循环注入Bug。

    解决方案:

    升级到1.2.4即可

    相关文章

      网友评论

          本文标题:Spring-mybatis 1.2.2的一个警告

          本文链接:https://www.haomeiwen.com/subject/iwtlgxtx.html