You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/docs/asciidoc/kotlin.adoc
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,7 +181,7 @@ See https://github.com/mixitconf/mixit/tree/bad6b92bce6193f9b3f696af9d416c276501
181
181
for a concrete example.
182
182
183
183
184
-
== Functional bean declaration DSL
184
+
== Functional bean definition DSL
185
185
186
186
Spring Framework 5 introduces a new way to register beans using lambda as an alternative
187
187
to XML or JavaConfig with `@Configuration` and `@Bean`. In a nutshell, it makes it possible
@@ -210,9 +210,9 @@ val context = GenericApplicationContext().apply {
210
210
----
211
211
212
212
In order to allow a more declarative approach and cleaner syntax, Spring Framework 5 introduces
213
-
a new {doc-root}/spring-framework/docs/{spring-version}/kdoc-api/spring-framework/org.springframework.context.support/-bean-definition-dsl/[Kotlin bean declaration DSL]
214
-
It conceptually declares a `Consumer<GenericApplicationContext>` via a clean declarative API
215
-
which allows you to deal with profiles and `Environment` for customizing how your beans are registered.
213
+
a new {doc-root}/spring-framework/docs/{spring-version}/kdoc-api/spring-framework/org.springframework.context.support/-bean-definition-dsl/[Kotlin bean definition DSL]
214
+
It declares an `ApplicationContextInitializer` via a clean declarative API which allows
215
+
you to deal with profiles and `Environment` for customizing how your beans are registered.
216
216
217
217
[source,kotlin]
218
218
----
@@ -273,7 +273,7 @@ for a concrete example.
273
273
274
274
[NOTE]
275
275
====
276
-
Spring Boot is based on Java Config, but should allow using user-defined functional bean declarations,
276
+
Spring Boot is based on Java Config, but should allow using user-defined functional bean definitions,
277
277
see https://jira.spring.io/browse/SPR-13779[SPR-13779] and https://github.com/spring-projects/spring-boot/issues/8115[spring-boot/#8115]
278
278
for more details and up to date informations.
279
279
====
@@ -497,7 +497,7 @@ class IntegrationTests {
497
497
498
498
* https://github.com/sdeleuze/spring-boot-kotlin-demo[spring-boot-kotlin-demo]: regular Spring Boot + Spring Data JPA project
499
499
* https://github.com/mixitconf/mixit[mixit]: Spring Boot 2 + WebFlux + Reactive Spring Data MongoDB
0 commit comments