@ContextConfiguration makes inheritance support out of the box.
@ContextConfiguration inheritLocations, true , .
inheritLocations = true. , , . , , . , .
inheritLocations false, , .
, , ApplicationContext ExtendedTest BaseConfig ExtendedConfig . Beans, ExtendedConfig, , BaseConfig.
@ContextConfiguration(classes=BaseConfig.class)
public class BaseTest {
}
@ContextConfiguration(classes=ExtendedConfig.class)
public class ExtendedTest extends BaseTest {
}