From ecf6caa89691450a3c0f9c5a1e621c61bb34ad86 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Fri, 25 May 2018 12:48:42 -0500 Subject: [PATCH] Add missing @Configuration for WebClientConfig Issue: gh-5388 --- .../src/main/java/sample/config/WebClientConfig.java | 2 ++ .../src/main/java/sample/WebClientConfig.java | 2 ++ .../boot/oauth2login/src/main/java/sample/WebClientConfig.java | 2 ++ 3 files changed, 6 insertions(+) diff --git a/samples/boot/oauth2/authcodegrant/src/main/java/sample/config/WebClientConfig.java b/samples/boot/oauth2/authcodegrant/src/main/java/sample/config/WebClientConfig.java index e462a620b8..09dfea17ab 100644 --- a/samples/boot/oauth2/authcodegrant/src/main/java/sample/config/WebClientConfig.java +++ b/samples/boot/oauth2/authcodegrant/src/main/java/sample/config/WebClientConfig.java @@ -17,6 +17,7 @@ package sample.config; import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; import org.springframework.security.oauth2.client.web.reactive.function.client.OAuth2AuthorizedClientExchangeFilterFunction; import org.springframework.web.reactive.function.client.WebClient; @@ -24,6 +25,7 @@ import org.springframework.web.reactive.function.client.WebClient; * @author Rob Winch * @since 5.1 */ +@Configuration public class WebClientConfig { @Bean diff --git a/samples/boot/oauth2login-webflux/src/main/java/sample/WebClientConfig.java b/samples/boot/oauth2login-webflux/src/main/java/sample/WebClientConfig.java index 1d0ed4a2b4..b5a96fe648 100644 --- a/samples/boot/oauth2login-webflux/src/main/java/sample/WebClientConfig.java +++ b/samples/boot/oauth2login-webflux/src/main/java/sample/WebClientConfig.java @@ -17,6 +17,7 @@ package sample; import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; import org.springframework.security.oauth2.client.web.reactive.function.client.OAuth2AuthorizedClientExchangeFilterFunction; import org.springframework.web.reactive.function.client.WebClient; @@ -24,6 +25,7 @@ import org.springframework.web.reactive.function.client.WebClient; * @author Rob Winch * @since 5.1 */ +@Configuration public class WebClientConfig { @Bean diff --git a/samples/boot/oauth2login/src/main/java/sample/WebClientConfig.java b/samples/boot/oauth2login/src/main/java/sample/WebClientConfig.java index 1d0ed4a2b4..b5a96fe648 100644 --- a/samples/boot/oauth2login/src/main/java/sample/WebClientConfig.java +++ b/samples/boot/oauth2login/src/main/java/sample/WebClientConfig.java @@ -17,6 +17,7 @@ package sample; import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; import org.springframework.security.oauth2.client.web.reactive.function.client.OAuth2AuthorizedClientExchangeFilterFunction; import org.springframework.web.reactive.function.client.WebClient; @@ -24,6 +25,7 @@ import org.springframework.web.reactive.function.client.WebClient; * @author Rob Winch * @since 5.1 */ +@Configuration public class WebClientConfig { @Bean