SpringTelegramBot icon indicating copy to clipboard operation
SpringTelegramBot copied to clipboard

Circular Dependency Issue

Open HCKRMN opened this issue 1 year ago • 0 comments

Upon starting the application, I encountered a circular dependency problem in the Spring application context, resulting in a failure to start the application.

The circular dependency was detected between the MainController and TelegramBotService beans. MainController depends on TelegramBotService, and vice versa, which forms a cyclic dependency loop.

The dependencies of some of the beans in the application context form a cycle:

mainController defined in file [C:\Github\MetricForce\telegram\target\classes\com\kuzmichev\telegram\controllers\MainController.class] ┌─────┐ | telegramBotService defined in file [C:\Github\MetricForce\telegram\target\classes\com\kuzmichev\telegram\services\TelegramBotService.class] └─────┘

HCKRMN avatar May 04 '24 13:05 HCKRMN