From 46db71921d6de80fb39eaccbd57fb7021c3d9f51 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Tue, 9 Aug 2022 16:25:52 -0500 Subject: [PATCH] Add Missing @Configuration @Enable* --- .../src/main/kotlin/example/SecurityConfiguration.kt | 2 ++ .../springframework/security/samples/config/SecurityConfig.kt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/reactive/webflux/kotlin/hello-security/src/main/kotlin/example/SecurityConfiguration.kt b/reactive/webflux/kotlin/hello-security/src/main/kotlin/example/SecurityConfiguration.kt index b6ae17f..aa76eac 100644 --- a/reactive/webflux/kotlin/hello-security/src/main/kotlin/example/SecurityConfiguration.kt +++ b/reactive/webflux/kotlin/hello-security/src/main/kotlin/example/SecurityConfiguration.kt @@ -17,6 +17,7 @@ package example import org.springframework.context.annotation.Bean +import org.springframework.context.annotation.Configuration import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity import org.springframework.security.config.web.server.ServerHttpSecurity import org.springframework.security.config.web.server.invoke @@ -25,6 +26,7 @@ import org.springframework.security.core.userdetails.ReactiveUserDetailsService import org.springframework.security.core.userdetails.User import org.springframework.security.web.server.SecurityWebFilterChain +@Configuration @EnableWebFluxSecurity class SecurityConfiguration { diff --git a/servlet/spring-boot/kotlin/hello-security/src/main/kotlin/org/springframework/security/samples/config/SecurityConfig.kt b/servlet/spring-boot/kotlin/hello-security/src/main/kotlin/org/springframework/security/samples/config/SecurityConfig.kt index 063555d..452607a 100644 --- a/servlet/spring-boot/kotlin/hello-security/src/main/kotlin/org/springframework/security/samples/config/SecurityConfig.kt +++ b/servlet/spring-boot/kotlin/hello-security/src/main/kotlin/org/springframework/security/samples/config/SecurityConfig.kt @@ -17,6 +17,7 @@ package org.springframework.security.samples.config import org.springframework.context.annotation.Bean +import org.springframework.context.annotation.Configuration import org.springframework.security.config.annotation.web.builders.HttpSecurity import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity import org.springframework.security.core.userdetails.User @@ -27,6 +28,7 @@ import org.springframework.security.web.SecurityFilterChain /** * @author Eleftheria Stein */ +@Configuration @EnableWebSecurity class SecurityConfig {