国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(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)遵守國家法律
监利县| 高陵县| 孟连| 峨眉山市| 禄丰县| 东至县| 波密县| 句容市| 株洲市| 疏附县| 兴海县| 沽源县| 南投县| 阿拉善右旗| 南川市| 工布江达县| 如皋市| 澄江县| 嵊州市| 江川县| 仲巴县| 武清区| 恩施市| 台北县| 资兴市| 隆林| 留坝县| 靖远县| 乐安县| 濉溪县| 宜宾县| 伊宁县| 佳木斯市| 射洪县| 碌曲县| 广南县| 巨鹿县| 安乡县| 安顺市| 宝丰县| 淅川县|