I am trying to switch to
java config from xml.
We have a core library, and then implementations that use the core library. We also have webapp and cli in each implementation. I am trying to modularize the config. We do use component scanning for certain packages. I am running into a circular dependency issue in the config classes. I need to inject the same @Component into beans created in multiple java config classes. My configs are as follows:
What would be the best way to solve this?
1 option would be to not use component scanning. Others?