spring check active profile code example Example: spring environment get active profiles @ActiveProfiles("dev")