Browse Source

Fix Kotlin example for @ComponentScan basePackages attribute

Closes gh-28628
pull/28653/head
Sam Brannen 2 years ago
parent
commit
8b4750e705
  1. 2
      src/docs/asciidoc/core/core-beans.adoc

2
src/docs/asciidoc/core/core-beans.adoc

@ -6615,7 +6615,7 @@ and using "`stub`" repositories instead: @@ -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 {

Loading…
Cancel
Save