From 8b4750e7059fdb7d99e3b524243e6bf2e4bd7094 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Wed, 15 Jun 2022 11:27:39 +0200 Subject: [PATCH] Fix Kotlin example for @ComponentScan basePackages attribute Closes gh-28628 --- src/docs/asciidoc/core/core-beans.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/asciidoc/core/core-beans.adoc b/src/docs/asciidoc/core/core-beans.adoc index ac7a724903..80d3a2c5d1 100644 --- a/src/docs/asciidoc/core/core-beans.adoc +++ b/src/docs/asciidoc/core/core-beans.adoc @@ -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 {