Skip to content

Commit 5721b03

Browse files
committed
Polish RequestCache continue Kolin Configuration
Issue gh-12089
1 parent aac1261 commit 5721b03

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

docs/modules/ROOT/partials/servlet/architecture/request-cache-continue.adoc

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,16 @@ DefaultSecurityFilterChain springSecurity(HttpSecurity http) throws Exception {
1919
.Kotlin
2020
[source,kotlin,role="secondary"]
2121
----
22-
@EnableWebSecurity
23-
class SecurityConfig {
24-
25-
@Bean
26-
open fun springSecurity(http: HttpSecurity): SecurityFilterChain {
27-
val httpRequestCache = HttpSessionRequestCache()
28-
httpRequestCache.setMatchingRequestParameterName("continue")
29-
http {
30-
requestCache {
31-
requestCache = httpRequestCache
32-
}
33-
}
34-
return http.build()
35-
}
22+
@Bean
23+
open fun springSecurity(http: HttpSecurity): SecurityFilterChain {
24+
val httpRequestCache = HttpSessionRequestCache()
25+
httpRequestCache.setMatchingRequestParameterName("continue")
26+
http {
27+
requestCache {
28+
requestCache = httpRequestCache
29+
}
30+
}
31+
return http.build()
3632
}
3733
----
3834

0 commit comments

Comments
 (0)