Issue
I'm trying to run a JUnit Test in IntelliJ IDEA, but the Runner could not find the Spring Profile.
this message is displayed in the log:
--spring.profiles.active=dev
but right after:
Could not find key 'spring.profiles.active' in any property source
and at the end the profile used is default
This is where I'm trying to set the profile in IntelliJ:
Solution
I find the problem. Everything works when I remove the "--" of the Environment variables.
This: --spring.profiles.active
To: spring.profiles.active
Answered By - Victor Soares
Answer Checked By - Clifford M. (JavaFixing Volunteer)