Skip to content

Commit 1ae99be

Browse files
madorbmarcusdacoregio
authored andcommitted
Clarify Package Import
Provide more explict instructions regarding the necessary import to make the Kotlin DSL work. For some reason it took me 10 minutes to figure this out based on the existing doc.
1 parent b3c7f3f commit 1ae99be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: docs/modules/ROOT/pages/reactive/configuration/webflux.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class HelloWebfluxSecurityConfig {
132132
======
133133

134134
[NOTE]
135-
Make sure that you import the `invoke` function in your Kotlin class, sometimes the IDE will not auto-import it causing compilation issues.
135+
Make sure to import the `org.springframework.security.config.annotation.web.invoke` function to enable the Kotlin DSL in your class, as the IDE will not always auto-import the method, causing compilation issues.
136136

137137
This configuration explicitly sets up all the same things as our minimal configuration.
138138
From here, you can more easily make changes to the defaults.

Diff for: docs/modules/ROOT/pages/servlet/configuration/kotlin.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ open fun filterChain(http: HttpSecurity): SecurityFilterChain {
3636
----
3737

3838
[NOTE]
39-
Make sure to import the `invoke` function in your class, as the IDE will not always auto-import the method, causing compilation issues.
39+
Make sure to import the `org.springframework.security.config.annotation.web.invoke` function to enable the Kotlin DSL in your class, as the IDE will not always auto-import the method, causing compilation issues.
4040

4141
The default configuration (shown in the preceding listing):
4242

0 commit comments

Comments
 (0)