Skip to content

Commit a9b9ae3

Browse files
committed
Upgrade to Spring Framework 6.0
Closes gh-1950
1 parent f697850 commit a9b9ae3

File tree

3 files changed

+8
-34
lines changed

3 files changed

+8
-34
lines changed

gradle/dependency-management.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ dependencyManagement {
33
mavenBom 'io.projectreactor:reactor-bom:2020.0.12'
44
mavenBom 'com.fasterxml.jackson:jackson-bom:2.11.2'
55
mavenBom 'org.junit:junit-bom:5.8.1'
6-
mavenBom 'org.springframework:spring-framework-bom:5.3.11'
76
mavenBom 'org.springframework.data:spring-data-bom:2021.1.0-RC1'
87
mavenBom 'org.springframework.security:spring-security-bom:5.6.0-RC1'
8+
mavenBom 'org.springframework:spring-framework-bom:6.0.0-SNAPSHOT'
99
mavenBom 'org.testcontainers:testcontainers-bom:1.16.0'
1010
}
1111

spring-session-docs/modules/ROOT/pages/index.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ Spring Session is Open Source software released under the https://www.apache.org
6464

6565
The minimum requirements for Spring Session are:
6666

67-
* Java 8+.
67+
* Java 17+.
6868
* If you run in a Servlet Container (not required), Servlet 3.1+.
69-
* If you use other Spring libraries (not required), the minimum required version is Spring 5.0.x.
69+
* If you use other Spring libraries (not required), the minimum required version is Spring 6.0.x.
7070
* `@EnableRedisHttpSession` requires Redis 2.8+. This is necessary to support xref:api.adoc#api-redisindexedsessionrepository-expiration[Session Expiration]
7171
* `@EnableHazelcastHttpSession` requires Hazelcast 3.6+. This is necessary to support xref:api.adoc#api-enablehazelcasthttpsession-storage[`FindByIndexNameSessionRepository`]
7272

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,20 @@
1-
[[upgrading-2.0]]
2-
= Upgrading to 2.x
1+
[[upgrading-3.0]]
2+
= Upgrading to 3.x
33

44
With the new major release version, the Spring Session team took the opportunity to make some non-passive changes.
55
The focus of these changes is to improve and harmonize Spring Session's APIs as well as remove the deprecated components.
66

77
== Baseline Update
88

9-
Spring Session 2.0 requires Java 8 and Spring Framework 5.0 as a baseline, since its entire codebase is now based on Java 8 source code.
9+
Spring Session 3.0 requires Java 17 and Spring Framework 6.0 as a baseline, since its entire codebase is now based on Java 17 source code.
1010
See https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-5.x[Upgrading to Spring Framework 5.x] for more on upgrading Spring Framework.
1111

12-
== Replaced and Removed Modules
13-
14-
As a part of the project's splitting of the modules, the existing `spring-session` has been replaced with the `spring-session-core` module.
15-
The `spring-session-core` module holds only the common set of APIs and components, while other modules contain the implementation of the appropriate `SessionRepository` and functionality related to that data store.
16-
This applies to several existing modules that were previously a simple dependency aggregator helper module.
17-
With new module arrangement, the following modules actually carry the implementation:
18-
19-
* Spring Session for MongoDB
20-
* Spring Session for Redis
21-
* Spring Session JDBC
22-
* Spring Session Hazelcast
23-
24-
Also, the following were removed from the main project repository:
25-
26-
* Spring Session Data GemFire
27-
** https://github.com/spring-projects/spring-session-data-geode[`spring-session-data-geode`]
28-
2912
== Replaced and Removed Packages, Classes, and Methods
3013

3114
The following changes were made to packages, classes, and methods:
3215

33-
* `ExpiringSession` API has been merged into the `Session` API.
34-
* The `Session` API has been enhanced to make full use of Java 8.
35-
* The `Session` API has been extended with `changeSessionId` support.
36-
* The `SessionRepository` API has been updated to better align with Spring Data method naming conventions.
37-
* `AbstractSessionEvent` and its subclasses are no longer constructable without an underlying `Session` object.
38-
* The Redis namespace used by `RedisOperationsSessionRepository` is now fully configurable, instead of being partially configurable.
39-
* Redis configuration support has been updated to avoid registering a Spring Session-specific `RedisTemplate` bean.
40-
* JDBC configuration support has been updated to avoid registering a Spring Session-specific `JdbcTemplate` bean.
41-
* Previously deprecated classes and methods have been removed across the codebase
16+
4217

4318
== Dropped Support
4419

45-
As a part of the changes to `HttpSessionStrategy` and its alignment to the counterpart from the reactive world, the support for managing multiple users' sessions in a single browser instance has been removed.
46-
The introduction of a new API to replace this functionality is under consideration for future releases.
20+

0 commit comments

Comments
 (0)