Java - Spring - Test - Context - @ActiveProfiles

Java - Spring - Test - Context - @ActiveProfiles

@ActiveProfiles

  • is a class-level annotation that is used to declare which active bean definition profiles (defined by @Profile) should be used when loading an ApplicationContext for test classes