Spring "No profiles defined in selected scope"
Answered
I am knew to IntelliJ, so this may be an easy question.
I am seeing the following

I assume this is occurring, because I have multiple application-*.properties files that are used to populate different properties to run against different environments. However, I am unable to select an active profile. I see the following

I do not see a way to setup profiles so that I can set them active.
Am I going down the right path? Can you tell me how to define profiles that IntelliJ will detect?
Thanks,
Please sign in to leave a comment.
This is most likely due to the fact that some Spring Boot autoconfiguration setups are unfortunately not recognized 100% yet, so there's probably multiple DataSources coming from the various auto-configuration classes (wrongly). Please watch https://youtrack.jetbrains.com/issue/IDEA-139669 for further updates.
Please check your context configuration: https://www.jetbrains.com/help/idea/spring.html.
As you can see, it is being autodetected as a Spring Boot project. But I have no way to exclude various application-*.properties files. All of them are in there.