https://stackoverflow.com/questions/9267799/how-do-you-get-current-active-default-environment-profile-programmatically-in-sp/77262475#77262475 How do you get current active/default Environment profile programmatically in Spring? I need to code different logic based on different current Environment profile. How can you get the currently active and default profiles from Spring? stackoverflow.com h..