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