Browse Source

Refine Kotlin internal modifier impact documentation

This commit is a refinement of 01b2856114.

Closes gh-32010
pull/32018/head
Yanming Zhou 2 years ago committed by Sébastien Deleuze
parent
commit
c868bc554f
  1. 2
      framework-docs/modules/ROOT/pages/languages/kotlin/spring-projects-in.adoc

2
framework-docs/modules/ROOT/pages/languages/kotlin/spring-projects-in.adoc

@ -167,7 +167,7 @@ public class SampleConfiguration {
As a consequence, the related bean name represented as a Kotlin string is `"sampleBean\$demo_kotlin_internal_test"`, As a consequence, the related bean name represented as a Kotlin string is `"sampleBean\$demo_kotlin_internal_test"`,
instead of `"sampleBean"` for the regular `public` function use-case. Make sure to use the mangled name when injecting instead of `"sampleBean"` for the regular `public` function use-case. Make sure to use the mangled name when injecting
such bean by name. such bean by name, or add `@JvmName("sampleBean")` to disable name mangling.
[[injecting-configuration-properties]] [[injecting-configuration-properties]]
== Injecting Configuration Properties == Injecting Configuration Properties

Loading…
Cancel
Save