Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Change active Spring profile in IntelliJ

Karan Kumar edited this page Mar 31, 2021 · 2 revisions

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.

Clone this wiki locally