更多>>Java程序設計 Blog
來源:一度好 時間:2022-07-07 閱讀:2761
SpringBoot在啟動時報錯:APPLICATION FAILED TO START, The dependencies of some of the beans in the application context form a cycle:com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration
在啟動 SpringBoot 項目時,發現啟動失敗,所報錯誤如下:
*************************** APPLICATION FAILED TO START *************************** Description: The dependencies of some of the beans in the application context form a cycle: ┌──->──┐ | com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration └──<-──┘
這是 SpringBoot pagehelp 分頁運行依賴自循環錯誤。
出現這種錯誤大多是由于 SpringBoot 版本和 pagehelp 版本不匹配導致的。
解決方法:
可以適當提高 pagehelp 的版本號,或是適當降低 SpringBoot 的版本號。
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.4.1</version>
</dependency>
具體的可以在 https://mvnrepository.com/ 網站中查找。
更換版本號,再次啟動就正常了。
評論列表 |
![]() Cinema 來自烏克蘭
Cinema
2023-08-04 10:14:44 |
發表評論