Skip to content

Commit 4b82d7d

Browse files
committed
Merge pull request #20541 from dreis2211
* pr/20541: Use @configuration(proxyBeanMethods=false) wherever possible Closes gh-20541
2 parents 566f79b + d9171d0 commit 4b82d7d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/reactive/ReactiveOAuth2ClientConfigurations.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -45,7 +45,7 @@
4545
*/
4646
class ReactiveOAuth2ClientConfigurations {
4747

48-
@Configuration
48+
@Configuration(proxyBeanMethods = false)
4949
@Conditional(ClientsConfiguredCondition.class)
5050
@ConditionalOnMissingBean(ReactiveClientRegistrationRepository.class)
5151
static class ReactiveClientRegistrationRepositoryConfiguration {
@@ -59,7 +59,7 @@ InMemoryReactiveClientRegistrationRepository clientRegistrationRepository(OAuth2
5959

6060
}
6161

62-
@Configuration
62+
@Configuration(proxyBeanMethods = false)
6363
@ConditionalOnBean(ReactiveClientRegistrationRepository.class)
6464
static class ReactiveOAuth2ClientConfiguration {
6565

@@ -77,7 +77,7 @@ ServerOAuth2AuthorizedClientRepository authorizedClientRepository(
7777
return new AuthenticatedPrincipalServerOAuth2AuthorizedClientRepository(authorizedClientService);
7878
}
7979

80-
@Configuration
80+
@Configuration(proxyBeanMethods = false)
8181
@ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.REACTIVE)
8282
static class SecurityWebFilterChainConfiguration {
8383

spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/RemoteDevtoolsSecurityConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,7 +32,7 @@
3232
* @author Madhura Bhave
3333
*/
3434
@ConditionalOnClass(WebSecurityConfigurerAdapter.class)
35-
@Configuration
35+
@Configuration(proxyBeanMethods = false)
3636
class RemoteDevtoolsSecurityConfiguration {
3737

3838
@Order(SecurityProperties.BASIC_AUTH_ORDER - 1)

0 commit comments

Comments
 (0)