Skip to content

Commit 5a26615

Browse files
committed
Disable proxyBeanMethods on Spring Session config sub-classes
Closes gh-23280
1 parent 95a3307 commit 5a26615

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/session/HazelcastSessionConfiguration.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.
@@ -47,7 +47,7 @@
4747
@EnableConfigurationProperties(HazelcastSessionProperties.class)
4848
class HazelcastSessionConfiguration {
4949

50-
@Configuration
50+
@Configuration(proxyBeanMethods = false)
5151
public static class SpringBootHazelcastHttpSessionConfiguration extends HazelcastHttpSessionConfiguration {
5252

5353
@Autowired

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/session/JdbcSessionConfiguration.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.
@@ -56,7 +56,7 @@ JdbcSessionDataSourceInitializer jdbcSessionDataSourceInitializer(DataSource dat
5656
return new JdbcSessionDataSourceInitializer(dataSource, resourceLoader, properties);
5757
}
5858

59-
@Configuration
59+
@Configuration(proxyBeanMethods = false)
6060
static class SpringBootJdbcHttpSessionConfiguration extends JdbcHttpSessionConfiguration {
6161

6262
@Autowired

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/session/MongoReactiveSessionConfiguration.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.
@@ -43,7 +43,7 @@
4343
@EnableConfigurationProperties(MongoSessionProperties.class)
4444
class MongoReactiveSessionConfiguration {
4545

46-
@Configuration
46+
@Configuration(proxyBeanMethods = false)
4747
static class SpringBootReactiveMongoWebSessionConfiguration extends ReactiveMongoWebSessionConfiguration {
4848

4949
@Autowired

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/session/MongoSessionConfiguration.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.
@@ -44,7 +44,7 @@
4444
@EnableConfigurationProperties(MongoSessionProperties.class)
4545
class MongoSessionConfiguration {
4646

47-
@Configuration
47+
@Configuration(proxyBeanMethods = false)
4848
public static class SpringBootMongoHttpSessionConfiguration extends MongoHttpSessionConfiguration {
4949

5050
@Autowired

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/session/RedisReactiveSessionConfiguration.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.
@@ -43,7 +43,7 @@
4343
@EnableConfigurationProperties(RedisSessionProperties.class)
4444
class RedisReactiveSessionConfiguration {
4545

46-
@Configuration
46+
@Configuration(proxyBeanMethods = false)
4747
static class SpringBootRedisWebSessionConfiguration extends RedisWebSessionConfiguration {
4848

4949
@Autowired

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/session/RedisSessionConfiguration.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.
@@ -64,7 +64,7 @@ ConfigureRedisAction configureRedisAction(RedisSessionProperties redisSessionPro
6464
"Unsupported redis configure action '" + redisSessionProperties.getConfigureAction() + "'.");
6565
}
6666

67-
@Configuration
67+
@Configuration(proxyBeanMethods = false)
6868
public static class SpringBootRedisHttpSessionConfiguration extends RedisHttpSessionConfiguration {
6969

7070
@Autowired

0 commit comments

Comments
 (0)