I have a Spring project which uses another project. Each project has its own spring profile initialize from java code using applicationContext.xml and *.p
My solution is to set the environment variable as spring.profiles.active=development. So that all applications running in that machine will refer the variable and start the application. The order in which spring loads a properties as follows
application.properties
system properties
environment variable