Skip to content

Commit 8617b13

Browse files
rwinchmarcusdacoregio
authored andcommitted
Add Missing @configuration @enable*
1 parent 95d9bdf commit 8617b13

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

reactive/webflux/kotlin/hello-security/src/main/kotlin/example/SecurityConfiguration.kt

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package example
1818

1919
import org.springframework.context.annotation.Bean
20+
import org.springframework.context.annotation.Configuration
2021
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
2122
import org.springframework.security.config.web.server.ServerHttpSecurity
2223
import org.springframework.security.config.web.server.invoke
@@ -25,6 +26,7 @@ import org.springframework.security.core.userdetails.ReactiveUserDetailsService
2526
import org.springframework.security.core.userdetails.User
2627
import org.springframework.security.web.server.SecurityWebFilterChain
2728

29+
@Configuration
2830
@EnableWebFluxSecurity
2931
class SecurityConfiguration {
3032

servlet/spring-boot/kotlin/hello-security/src/main/kotlin/org/springframework/security/samples/config/SecurityConfig.kt

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package org.springframework.security.samples.config
1818

1919
import org.springframework.context.annotation.Bean
20+
import org.springframework.context.annotation.Configuration
2021
import org.springframework.security.config.annotation.web.builders.HttpSecurity
2122
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
2223
import org.springframework.security.core.userdetails.User
@@ -27,6 +28,7 @@ import org.springframework.security.web.SecurityFilterChain
2728
/**
2829
* @author Eleftheria Stein
2930
*/
31+
@Configuration
3032
@EnableWebSecurity
3133
class SecurityConfig {
3234

0 commit comments

Comments
 (0)