SyntaxFix
Write A Post
Hire A Developer
Questions
@Value("${spring.profiles.active}") private String activeProfile;
It works and you don't need to implement EnvironmentAware. But I don't know drawbacks of this approach.