Skip to content

Commit fdbfa3e

Browse files
committed
Add @Import to OverridingConfig
Closes gh-34805 Signed-off-by: Daeho Kwon <[email protected]>
1 parent a3dd3d2 commit fdbfa3e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spring-context/src/test/java/org/springframework/context/annotation/ImportSelectorTests.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -233,7 +233,12 @@ static class InterfaceBasedConfig implements ConfigImportMarker {
233233
}
234234

235235
@Configuration
236+
@Import(OverridingImportedConfig.class)
236237
static class OverridingConfig implements ConfigImportMarker {
238+
}
239+
240+
@Configuration
241+
static class OverridingImportedConfig {
237242
@Bean
238243
ImportedBean importedBean() {
239244
return new ImportedBean("from class");

0 commit comments

Comments
 (0)