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.
我是这样的解决了的
我在yml文件中加入了
main:
allow-circular-references: true #清理循环引用的bean,也可以跳过
重新启动项目,完美