I use this command to run my spring application - java -jar -Dspring.profiles.active=native ddwa-services-app/target/ddwa-services-app-1.0-SNAPSHOT.jar, but when run the application from IDE, I need to add run configuration, below is the screenshot showing what I have added, but it does not work for me.

Looking at my working Spring Boot 2.0.4 app configuration, I can suggest you to try these:
Correct syntax for spring profiles is --spring.profiles.active=yourprofile in Program Arguments
Working directory should be set to your application root folder.
I also don't have separate Active Profiles field highlighted on your screenshot.
This is my working configuration:

We also run our app as :
java -Dproperty=value -jar path/ourapp.jar --spring.profiles.active=ourprofile
Actually, both variants of active profile configuration are correct - see Setting active profile and config location from command line in spring boot
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With