- Goto Run > Edit Configuration
- Choose the configuration you want to edit, in the left under Application.
- On the right side > Under Environment Variable, update
spring.profiles.active=<your profile name>
examplespring.profiles.active=dev
(observer:- the variable should be without -D flag) - Save the changes and Run the Spring boot app with the same configuration.
No comments:
Post a Comment