SpringApplication will load properties from application.properties files in the following locations and add them to the Spring Environment:
In tomcat/bin create setenv.sh file and in file you need to give below line in file for default properties for all the wars, And save it and restart tomcat.
export SPRING_PROFILES_ACTIVE=dev