Change active Spring profile in IntelliJ - Project-Books/books-api GitHub Wiki

Step 1:

image

Select 'Edit Configurations'.

Step 2:

image

In the Run/Debug configurations, set 'VM options' to -Dspring.profiles.active=dev, as shown above.

Step 3:

image

If you now run the app, you should see the 'dev' profile enabled.