SyntaxFix
Write A Post
Hire A Developer
Questions
It doesn't matter is your app Boot or just raw Spring. There is just enough to inject org.springframework.core.env.Environment to your bean.
org.springframework.core.env.Environment
@Autowired private Environment environment; .... this.environment.getActiveProfiles();