Skip to content

Commit b98c521

Browse files
committed
Update configuration classes to use proxyBeanMethods=false
Resolves: #1345
1 parent eb0f89a commit b98c521

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

spring-session-core/src/main/java/org/springframework/session/config/annotation/web/http/SpringHttpSessionConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
*
9292
* @see EnableSpringHttpSession
9393
*/
94-
@Configuration
94+
@Configuration(proxyBeanMethods = false)
9595
public class SpringHttpSessionConfiguration implements ApplicationContextAware {
9696

9797
private final Log logger = LogFactory.getLog(getClass());

spring-session-core/src/main/java/org/springframework/session/config/annotation/web/server/SpringWebSessionConfiguration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2018 the original author or authors.
2+
* Copyright 2014-2019 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.
@@ -35,7 +35,7 @@
3535
*
3636
* @see EnableSpringWebSession
3737
*/
38-
@Configuration
38+
@Configuration(proxyBeanMethods = false)
3939
public class SpringWebSessionConfiguration {
4040

4141
/**

spring-session-data-redis/src/main/java/org/springframework/session/data/redis/config/annotation/web/http/RedisHttpSessionConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
* @see EnableRedisHttpSession
7373
* @since 1.0
7474
*/
75-
@Configuration
75+
@Configuration(proxyBeanMethods = false)
7676
@EnableScheduling
7777
public class RedisHttpSessionConfiguration extends SpringHttpSessionConfiguration
7878
implements BeanClassLoaderAware, EmbeddedValueResolverAware, ImportAware,

spring-session-data-redis/src/main/java/org/springframework/session/data/redis/config/annotation/web/server/RedisWebSessionConfiguration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2018 the original author or authors.
2+
* Copyright 2014-2019 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.
@@ -53,7 +53,7 @@
5353
* @see EnableRedisWebSession
5454
* @since 2.0.0
5555
*/
56-
@Configuration
56+
@Configuration(proxyBeanMethods = false)
5757
public class RedisWebSessionConfiguration extends SpringWebSessionConfiguration
5858
implements BeanClassLoaderAware, EmbeddedValueResolverAware, ImportAware {
5959

spring-session-hazelcast/src/main/java/org/springframework/session/hazelcast/config/annotation/web/http/HazelcastHttpSessionConfiguration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2017 the original author or authors.
2+
* Copyright 2014-2019 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.
@@ -46,7 +46,7 @@
4646
* @since 1.1
4747
* @see EnableHazelcastHttpSession
4848
*/
49-
@Configuration
49+
@Configuration(proxyBeanMethods = false)
5050
public class HazelcastHttpSessionConfiguration extends SpringHttpSessionConfiguration
5151
implements ImportAware {
5252

spring-session-jdbc/src/main/java/org/springframework/session/jdbc/config/annotation/web/http/JdbcHttpSessionConfiguration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2018 the original author or authors.
2+
* Copyright 2014-2019 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 @@
6464
* @since 1.2.0
6565
* @see EnableJdbcHttpSession
6666
*/
67-
@Configuration
67+
@Configuration(proxyBeanMethods = false)
6868
@EnableScheduling
6969
public class JdbcHttpSessionConfiguration extends SpringHttpSessionConfiguration
7070
implements BeanClassLoaderAware, EmbeddedValueResolverAware, ImportAware,

0 commit comments

Comments
 (0)