diff --git a/spring-test/src/main/java/org/springframework/test/context/BootstrapWith.java b/spring-test/src/main/java/org/springframework/test/context/BootstrapWith.java index 7cf742f6330..d56ce8f8928 100644 --- a/spring-test/src/main/java/org/springframework/test/context/BootstrapWith.java +++ b/spring-test/src/main/java/org/springframework/test/context/BootstrapWith.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,7 +28,10 @@ import java.lang.annotation.Target; * how to bootstrap the Spring TestContext Framework. * *
This annotation may also be used as a meta-annotation to create - * custom composed annotations. + * custom composed annotations. As of Spring Framework 5.1, a locally + * declared {@code @BootstrapWith} annotation (i.e., one that is directly + * present on the current test class) will override any meta-present + * declarations of {@code @BootstrapWith}. * * @author Sam Brannen * @since 4.1