Hi I am new to Springboot,
I have 2 Springboot applications,
- DSM
- saveDataAPI
DSM is used to handle all the DB related interactions.
in DSM I have,
- component class
- Repository - uses CouchbaseRepository
- Entity
component has a save() method which is used to save an entity to the to couchBase DB. DSM was build as a jar and it was included in saveDataAPI.
Added the component class details in the META-INF file in DSM so that saveDataAPI can access it.
I have injected the dependency of DSM's component class in saveDataAPI'2 service class to use the save function. I couldn't see any compilation error and also the maven build was success.
@Autowired DSMController dsmController;
But as I try to run saveDataAPI in eclispe, I am getting the below error.
Action:
Consider defining a bean of type 'com.ums.sam.DSMModule.repo.DSMMRepository' in your configuration.
DSMRepository is autowired to DSM's component class but as saveDataAPI starts, it is unable to create the bean.
Can someone please suggest a way to resolve this.
Thank you.