Selaa lähdekoodia

Add Missing @Configuration @Enable*

Rob Winch 3 vuotta sitten
vanhempi
commit
8617b13fc0

+ 2 - 0
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 {
 

+ 2 - 0
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 {