I am working on some Java projects using Spring boot. I have an autoconfigured class MyAutoConfig in the spring.factories file in a project A.
This configuration file has some bean definitions, for example the class Worker.
The project B is using A as a library, in gradle like this:
implementation project(':project-A')
I can start project B without any errors. But when I try to use @Autowired Worker worker in project B in the main class where I have @SpringBootConfiguration, it told me that "expected at least 1 bean which qualifies as autowire candidate", so I assume that the bean is not in the context.
I would like to know what could be the problem ?