I need to code different logic based on different current Environment profile. How can you get the current active and default profiles from Spring?
You can autowire the Environment
@Autowired Environment env;
Environment offers:
Environment