From 5721b0351e458bb2f2679d50a211f16c0b0cef2e Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Thu, 27 Oct 2022 15:13:50 -0500 Subject: [PATCH] Polish RequestCache continue Kolin Configuration Issue gh-12089 --- .../architecture/request-cache-continue.adoc | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/docs/modules/ROOT/partials/servlet/architecture/request-cache-continue.adoc b/docs/modules/ROOT/partials/servlet/architecture/request-cache-continue.adoc index bddde1ca6e..4a60a37ef1 100644 --- a/docs/modules/ROOT/partials/servlet/architecture/request-cache-continue.adoc +++ b/docs/modules/ROOT/partials/servlet/architecture/request-cache-continue.adoc @@ -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() } ----