If I want to use my own own spring boot project as a dependency to other spring boot projects. But without component scan my dependency rest end points are not exposed . How to expose my dependency rest end points automatically like actuator when it is added to dependency.
<dependency>
<groupId>com.sapient.asde.batch5</groupId>
<artifactId>vehicle-data-service</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
Given I pushed my project to local repo and add the above dependency
@ComponentScan(basepackages={"somepackage"})
Without ComponentScan in the dependency added project rest end points are not visible.How to automate this