I am having 3 spring boot projects. [Demo1, Demo2 and Demo3 .]
Demo1 is the base project.
For Demo2 and Demo3, I will generate the jar and add it in the Demo1 project.
So Demo1, Demo2 and Demo3 all three projects have different application.properties under profiles.
For example,
Demo2 might have oracle database configuration under application.properties. Demo3 might have mongodb database configuration under application.properties
Demo1 might have mysql database configuration under application.properties.
My scenario is like, I am creating a scheduler platform application.
N no of jars will come and add under Demo1 project. So the Demo1 project will automatically run based on cron expressions.
It will automatically trigger the jars which you have added.
So if the call is going for Demo2 Project, it has to pick Demo2 application properties.
If the call is going for Demo3 Project, It has to pick Demo3 application properties.
Right now the Demo1 project is not recognizing the application.properties for different jars.
Only Demo2 project application.properties is loading, Demo1 and Demo3 properties are not loaded.
I need a solution for my scenario.