I updated my application from spring 3.0.7RELEASE to 5.3.27, My application contains multiple bean definitions in context files. At every bean creation I get nested exception as follows -
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'exampleA': Unsatisfied dependency expressed through field 'com.externalLib.exampleB'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.externalLib.exampleB' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}.
In the above error exampleB is a bean from external library, My application uses several classes from external libraries which have different spring versions.
is there any way I can resolve the error without editing the external libraries?
Also is there a change in the way of how spring is handling autowiring in Spring 5.x versions?
I was able to edit a few of the external libraries being used and tried adding @Component/@Service/@Qualifier, but that did not resolve the issue.