Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possibl

Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.

解决

配置文件加上

spring.main.allow-circular-references=true

posted @ 2021-12-14 19:16  丁帅帅dss  阅读(387)  评论(0)    收藏  举报