Fix Kotlin example for @ComponentScan basePackages attribute

Closes gh-28628
This commit is contained in:
Sam Brannen
2022-06-15 11:27:39 +02:00
parent 2e033339d1
commit 8b4750e705

View File

@@ -6615,7 +6615,7 @@ and using "`stub`" repositories instead:
.Kotlin
----
@Configuration
@ComponentScan(basePackages = "org.example",
@ComponentScan(basePackages = ["org.example"],
includeFilters = [Filter(type = FilterType.REGEX, pattern = [".*Stub.*Repository"])],
excludeFilters = [Filter(Repository::class)])
class AppConfig {