I am using intellij idea to do a unit test with spring boot using JDK21, after I added the profile annotion in the test class:
<code>@ActiveProfiles("test")
</code>
<code>@ActiveProfiles("test")
</code>
@ActiveProfiles("test")
the log still show there contains 2 active profiles dev, test. I have tried to check the project application.yaml
, the Intellij Idea environment variable, the startup command when run the unit test log output, and did not found the dev
profile setting. Now I only want to use the test
as the active profile. what should I do? is it possible to force override the dev active profile?