I have a maven multi module app with the structure :
-parent_project
-actual_project
-jpaBase
Parent project is a maven aggregation of the projects : actual_project and jpaBase (both spring boot applications)
jpaBase is a dependency of actual_project.
Now when i do a mvn package I am getting a unit test error :
Found multiple @SpringBootConfiguration annotated classes
because both jpaBase and actual_project have classes annotated with @SpringBootConfiguration.
How can I make sure that Spring considers the SpringBootConfiguration class of only actual_project and not of jpaBase.
Thanks!
jpaBasean actual application which needs to run independently or just the persistence layer for youractual_project?