From bd8834568df1d2e2f0cb11dbfdbe29c4b54eae72 Mon Sep 17 00:00:00 2001 From: Kazuki Shimizu Date: Fri, 24 Nov 2017 23:29:31 +0900 Subject: [PATCH] Add @Inherited on spring-boot-test-autoconfigure Closes gh-11139 --- .../boot/test/autoconfigure/jdbc/AutoConfigureJdbc.java | 2 ++ .../boot/test/autoconfigure/jooq/AutoConfigureJooq.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/jdbc/AutoConfigureJdbc.java b/spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/jdbc/AutoConfigureJdbc.java index bcb073fee4..ef942daca4 100644 --- a/spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/jdbc/AutoConfigureJdbc.java +++ b/spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/jdbc/AutoConfigureJdbc.java @@ -18,6 +18,7 @@ package org.springframework.boot.test.autoconfigure.jdbc; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; +import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @@ -36,6 +37,7 @@ import org.springframework.boot.autoconfigure.ImportAutoConfiguration; @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Documented +@Inherited @ImportAutoConfiguration public @interface AutoConfigureJdbc { diff --git a/spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/jooq/AutoConfigureJooq.java b/spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/jooq/AutoConfigureJooq.java index b563e12c2c..5117452c17 100644 --- a/spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/jooq/AutoConfigureJooq.java +++ b/spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/jooq/AutoConfigureJooq.java @@ -18,6 +18,7 @@ package org.springframework.boot.test.autoconfigure.jooq; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; +import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @@ -35,6 +36,7 @@ import org.springframework.boot.autoconfigure.ImportAutoConfiguration; @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Documented +@Inherited @ImportAutoConfiguration public @interface AutoConfigureJooq {