Mybatis的Service循环调用错误

org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'zjMeasurePayService': Bean with name 'zjMeasurePayService' has been injected into other beans [zjMeasurePayDetailService] 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.

将其中一个service换成Dao即可

posted @ 2018-02-01 10:03  天真天  阅读(189)  评论(0编辑  收藏  举报