Change active Spring profile in IntelliJ - Project-Books/books-api GitHub Wiki
Step 1:
Select 'Edit Configurations'.
Step 2:
In the Run/Debug configurations, set 'VM options' to -Dspring.profiles.active=dev
, as shown above.
Step 3:
If you now run the app, you should see the 'dev' profile enabled.