Polish RequestCache continue Kolin Configuration

Issue gh-12089
This commit is contained in:
Rob Winch 2022-10-27 15:13:50 -05:00
parent aac1261f0c
commit 5721b0351e
1 changed files with 10 additions and 14 deletions

View File

@ -19,20 +19,16 @@ DefaultSecurityFilterChain springSecurity(HttpSecurity http) throws Exception {
.Kotlin
[source,kotlin,role="secondary"]
----
@EnableWebSecurity
class SecurityConfig {
@Bean
open fun springSecurity(http: HttpSecurity): SecurityFilterChain {
val httpRequestCache = HttpSessionRequestCache()
httpRequestCache.setMatchingRequestParameterName("continue")
http {
requestCache {
requestCache = httpRequestCache
}
}
return http.build()
}
@Bean
open fun springSecurity(http: HttpSecurity): SecurityFilterChain {
val httpRequestCache = HttpSessionRequestCache()
httpRequestCache.setMatchingRequestParameterName("continue")
http {
requestCache {
requestCache = httpRequestCache
}
}
return http.build()
}
----