Skip to content

Commit 6c12521

Browse files
committed
Polish Spring Session removals
See gh-47661 See gh-47662
1 parent 61c8fa2 commit 6c12521

File tree

2 files changed

+7
-5
lines changed
  • configuration-metadata/spring-boot-configuration-metadata-changelog-generator
  • documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/web

2 files changed

+7
-5
lines changed

configuration-metadata/spring-boot-configuration-metadata-changelog-generator/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ def dependenciesOf(String version) {
116116
"spring-boot-sendgrid",
117117
"spring-boot-servlet",
118118
"spring-boot-session",
119+
"spring-boot-session-data-mongodb",
119120
"spring-boot-session-data-redis",
121+
"spring-boot-session-hazelcast",
120122
"spring-boot-session-jdbc",
121123
"spring-boot-sql",
122124
"spring-boot-test-autoconfigure",
@@ -153,6 +155,8 @@ def dependenciesOf(String version) {
153155
}
154156
if (version.equals("4.0.0-RC1")) {
155157
modules -= [
158+
"spring-boot-session-data-mongodb",
159+
"spring-boot-session-hazelcast",
156160
"spring-boot-tx"
157161
]
158162
modules += [

documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/web/spring-session.adoc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ If you have more than one implementation, Spring Boot uses the following order f
1616

1717
. Redis
1818
. JDBC
19-
. If neither Redis or JDBC are available, we do not configure a javadoc:org.springframework.session.SessionRepository[].
20-
19+
. If neither Redis nor JDBC are available, we do not configure a javadoc:org.springframework.session.SessionRepository[].
2120

2221
When building a reactive web application, the Redis store can be auto-configured.
23-
The reactive auto-configuration replaces the need to use `@Enable*WebSession`.
22+
This replaces the need to use `@EnableRedisWebSession`.
2423

2524
Each store has specific additional settings.
2625
For instance, it is possible to customize the name of the table for the JDBC store, as shown in the following example:
@@ -36,7 +35,6 @@ spring:
3635
For setting the timeout of the session you can use the configprop:spring.session.timeout[] property.
3736
If that property is not set with a servlet web application, the auto-configuration falls back to the value of configprop:server.servlet.session.timeout[].
3837

39-
40-
You can take control over Spring Session's configuration using `@Enable*HttpSession` (servlet) or `@Enable*WebSession` (reactive).
38+
You can take control over Spring Session's configuration using `@Enable*HttpSession` (servlet) or `@EnableRedisWebSession` (reactive).
4139
This will cause the auto-configuration to back off.
4240
Spring Session can then be configured using the annotation's attributes rather than the previously described configuration properties.

0 commit comments

Comments
 (0)