Skip to content

Commit d4272cd

Browse files
committed
Merge branch 'main' into tc-2.0
2 parents 5f2ce33 + 6c12521 commit d4272cd

File tree

36 files changed

+7
-1164
lines changed

36 files changed

+7
-1164
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ def dependenciesOf(String version) {
155155
}
156156
if (version.equals("4.0.0-RC1")) {
157157
modules -= [
158+
"spring-boot-session-data-mongodb",
159+
"spring-boot-session-hazelcast",
158160
"spring-boot-tx"
159161
]
160162
modules += [
Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
[[web.spring-session]]
22
= Spring Session
33

4-
Spring Boot provides {url-spring-session-site}[Spring Session] auto-configuration for a wide range of data stores.
4+
Spring Boot provides {url-spring-session-site}[Spring Session] auto-configuration for a range of data stores.
55
When building a servlet web application, the following stores can be auto-configured:
66

77
* Redis
88
* JDBC
9-
* Hazelcast
10-
* MongoDB
119

1210
Additionally, {url-spring-boot-for-apache-geode-site}[Spring Boot for Apache Geode] provides {url-spring-boot-for-apache-geode-docs}#geode-session[auto-configuration for using Apache Geode as a session store].
1311

@@ -18,24 +16,10 @@ If you have more than one implementation, Spring Boot uses the following order f
1816

1917
. Redis
2018
. JDBC
21-
. Hazelcast
22-
. MongoDB
23-
. If none of Redis, JDBC, Hazelcast and MongoDB are available, we do not configure a javadoc:org.springframework.session.SessionRepository[].
24-
25-
26-
When building a reactive web application, the following stores can be auto-configured:
27-
28-
* Redis
29-
* MongoDB
30-
31-
The reactive auto-configuration replaces the need to use `@Enable*WebSession`.
32-
33-
Similar to the servlet configuration, if you have more than one implementation, Spring Boot uses the following order for choosing a specific implementation:
34-
35-
. Redis
36-
. MongoDB
37-
. If neither Redis nor MongoDB are available, we do not configure a javadoc:org.springframework.session.ReactiveSessionRepository[].
19+
. If neither Redis nor JDBC are available, we do not configure a javadoc:org.springframework.session.SessionRepository[].
3820

21+
When building a reactive web application, the Redis store can be auto-configured.
22+
This replaces the need to use `@EnableRedisWebSession`.
3923

4024
Each store has specific additional settings.
4125
For instance, it is possible to customize the name of the table for the JDBC store, as shown in the following example:
@@ -51,7 +35,6 @@ spring:
5135
For setting the timeout of the session you can use the configprop:spring.session.timeout[] property.
5236
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[].
5337

54-
55-
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).
5639
This will cause the auto-configuration to back off.
5740
Spring Session can then be configured using the annotation's attributes rather than the previously described configuration properties.

module/spring-boot-autoconfigure-classic-modules/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,15 +235,9 @@ dependencies {
235235
api(project(":module:spring-boot-session")) {
236236
transitive = false
237237
}
238-
api(project(":module:spring-boot-session-data-mongodb")) {
239-
transitive = false
240-
}
241238
api(project(":module:spring-boot-session-data-redis")) {
242239
transitive = false
243240
}
244-
api(project(":module:spring-boot-session-hazelcast")) {
245-
transitive = false
246-
}
247241
api(project(":module:spring-boot-session-jdbc")) {
248242
transitive = false
249243
}

module/spring-boot-session-data-mongodb/src/main/java/org/springframework/boot/session/data/mongodb/autoconfigure/SessionDataMongoAutoConfiguration.java

Lines changed: 0 additions & 113 deletions
This file was deleted.

module/spring-boot-session-data-mongodb/src/main/java/org/springframework/boot/session/data/mongodb/autoconfigure/SessionDataMongoProperties.java

Lines changed: 0 additions & 43 deletions
This file was deleted.

module/spring-boot-session-data-mongodb/src/main/java/org/springframework/boot/session/data/mongodb/autoconfigure/package-info.java

Lines changed: 0 additions & 23 deletions
This file was deleted.

module/spring-boot-session-data-mongodb/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

module/spring-boot-session-data-mongodb/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports

Lines changed: 0 additions & 1 deletion
This file was deleted.

module/spring-boot-session-hazelcast/build.gradle

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)