最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

springboot 2.6+啟動(dòng)錯(cuò)誤_循環(huán)依賴

2022-09-12 22:02 作者:佛系的工具人  | 我要投稿

解決升級(jí) Spring Boot 2.6后,因循環(huán)引用導(dǎo)致啟動(dòng)時(shí)報(bào)錯(cuò)的問題

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.

原因

依賴循環(huán)引用是不鼓勵(lì)的,默認(rèn)情況下是禁止的。更新應(yīng)用程序以刪除bean之間的依賴循環(huán)。作為最后的手段,可以通過設(shè)置spring.main來自動(dòng)打破循環(huán)。allow-circular-references為true。


只需要在application.properties 文件中 加入 一行代碼


spring.main.allow-circular-references=true




springboot 2.6+啟動(dòng)錯(cuò)誤_循環(huán)依賴的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國家法律
遵义市| 旺苍县| 灵璧县| 南皮县| 泗水县| 昆明市| 万源市| 东莞市| 深水埗区| 东阿县| 丽江市| 永寿县| 桃园县| 滦平县| 华池县| 上饶市| 克拉玛依市| 志丹县| 祁阳县| 邻水| 红桥区| 嘉兴市| 福泉市| 池州市| 天全县| 武山县| 蓬安县| 辰溪县| 神农架林区| 石泉县| 绥滨县| 凤阳县| 蒙城县| 九龙城区| 乡城县| 阿克陶县| 望奎县| 乌什县| 淮北市| 奇台县| 东山县|