소스 검색

Polish RequestCache continue Kolin Configuration

Issue gh-12089
Rob Winch 2 년 전
부모
커밋
5721b0351e
1개의 변경된 파일10개의 추가작업 그리고 14개의 파일을 삭제
  1. 10 14
      docs/modules/ROOT/partials/servlet/architecture/request-cache-continue.adoc

+ 10 - 14
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()
 }
 ----