今天Springboot中加入PageHelper插件报下面的错误:Spring循环依赖 热推荐
2023-06-17 18:28:37 来源:哔哩哔哩
(资料图片仅供参考)
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,也可以跳过
重新启动项目,完美
关键词: