Spring profiles problem

Good morning everyone. I have a problem with Spring profiles. My goal is to have multiple profiles based on environments. I created my profiles in the core folder naming them lcd-app.properties, dev-app.properties etc.
In my tomcat I created the setenv.sh file with the string export CATALINA_OPTS=-Dspring.profiles.active=lcd inside which in theory should set the lcd environment for me. Do i need to set anything else when deploying? Maybe in the deployment settings on Cuba Studio? Unfortunately, when I load the .war file onto Tomcat it doesn’t work…

Hi,

Profile-specific files uses the following naming convention: application-{profile}.properties. See Spring Boot doc for more detail.

Regards,
Gleb

Hi Gleb, thank you…my error was in including the custom datastore configuration in war settings.
Thank you very much.