Skip to content

Commit e05b7e4

Browse files
committed
Polish 'Order SessionRepositoryCustomizer before other customizers'
See gh-33514
1 parent 19ce32d commit e05b7e4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/session/JdbcSessionConfiguration.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2023 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.
@@ -79,7 +79,6 @@ SessionRepositoryCustomizer<JdbcIndexedSessionRepository> springBootSessionRepos
7979
map.from(jdbcSessionProperties::getSaveMode).to(sessionRepository::setSaveMode);
8080
map.from(jdbcSessionProperties::getCleanupCron).to(sessionRepository::setCleanupCron);
8181
};
82-
8382
}
8483

8584
static class OnJdbcSessionDatasourceInitializationCondition extends OnDatabaseInitializationCondition {

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/session/SessionAutoConfigurationJdbcTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2023 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.
@@ -252,7 +252,6 @@ INSERT INTO SPRING_SESSION_ATTRIBUTES (SESSION_PRIMARY_ID, ATTRIBUTE_NAME, ATTRI
252252
ON CONFLICT (SESSION_PRIMARY_ID, ATTRIBUTE_NAME)
253253
DO UPDATE SET ATTRIBUTE_BYTES = EXCLUDED.ATTRIBUTE_BYTES
254254
""";
255-
256255
this.contextRunner.withUserConfiguration(CustomJdbcIndexedSessionRepositoryCustomizerConfiguration.class)
257256
.withConfiguration(AutoConfigurations.of(JdbcSessionConfiguration.class)).run((context) -> {
258257
JdbcIndexedSessionRepository repository = validateSessionRepository(context,

0 commit comments

Comments
 (0)