Circular dependecy when importing the library
We can not use the library with Spring 2.6.2 cause of circular references
To Reproduce
- Import the lib
- Run your project
Expected behavior It should run without errors
Actual behavior
***************************
APPLICATION FAILED TO START
***************************
Description:
The dependencies of some of the beans in the application context form a cycle:
┌──->──┐
| sshdServerConfiguration
└──<-──┘

Additional context springframework version 2.6.2
I have the same problem
Please add the following property and let me know if it works:
spring.main.allow-circular-references=true
It's a temporary fix while I try to figure out what's going on under the hood.
@anand1st The issue come from spring-shell :
Into the release 2.1.0-M1 you can see :
Re-work to remove bean cycles which caused issues with boot 2.6.x.
https://github.com/spring-projects/spring-shell/releases/tag/v2.1.0-M1