ServiceImpl defined in a dependent jar library is not found by spring in MainApplication
I have created a springboot application which will serve as a library for my MainApplication. This library has some service class, repository class and entity, basically an independent feature which can be used my multiple applications. My flow looks something like this: