Circular Dependency Issue
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] └─────┘