今天Springboot中加入PageHelper插件報下面的錯誤:Spring循環(huán)依賴
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 ? #清理循環(huán)引用的bean,也可以跳過
重新啟動項目,完美
