欢迎光临散文网 会员登陆 & 注册

今天Springboot中加入PageHelper插件报下面的错误:Spring循环依赖

2023-06-17 18:38 作者:孑然一身木子  | 我要投稿

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,也可以跳过

重新启动项目,完美




今天Springboot中加入PageHelper插件报下面的错误:Spring循环依赖的评论 (共 条)

分享到微博请遵守国家法律