In my Spring Boot application, i want to create environment specific properties file. The packaging type of my application in war and i am executing it in embedded tomcat. I use sts and execute the main from sts itself.
- Can i have environment specific properties file like application-${env-value}.properties?
In above case, env-value will have values as local/devl/test/prod
Where to set the env-value file? For local, i can set it as the jvm argument through sts
Who reads the application.properties in Spring Boot application.
How to load the environment specific properties file? For ex - if i set the database uid,pwd, schema etc in environment specific property file, in that case will the datasource be able to understand the properties in it?
Can i use application.properties and application-local.properties file at same time?