Class DefaultActiveProfilesResolver

java.lang.Object
org.springframework.test.context.support.DefaultActiveProfilesResolver
All Implemented Interfaces:
ActiveProfilesResolver

public class DefaultActiveProfilesResolver extends Object implements ActiveProfilesResolver
Default implementation of the ActiveProfilesResolver strategy that resolves active bean definition profiles based solely on profiles configured declaratively via ActiveProfiles.profiles() or ActiveProfiles.value().

Note that the spring.profiles.active property (whether configured as a JVM system property or environment variable) is not taken into account by this resolver. If you need to allow spring.profiles.active to override profiles configured via @ActiveProfiles, you can implement a custom ActiveProfilesResolver and register it via ActiveProfiles.resolver().

Since:
4.1
Author:
Sam Brannen
See Also: