File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
spring-boot-samples/spring-boot-sample-session Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ supports multiple session store types, including:
6
6
* `Redis`
7
7
* `JDBC`
8
8
* `Hazelcast`
9
+ * `MongoDB`
9
10
10
11
11
12
@@ -46,3 +47,14 @@ automatically configure the underlying `HazelcastInstance`.
46
47
47
48
TIP: Run sample application using Hazelcast session store with
48
49
`$mvn spring-boot:run -Phazelcast`.
50
+
51
+
52
+
53
+ === MongoDB
54
+ Add `org.springframework.session:spring-session-data-mongodb` and
55
+ `spring-boot-starter-data-mongodb` dependencies to the project and make sure it is
56
+ configured properly (by default, a MongoDB instance with the default settings is expected
57
+ on your local box).
58
+
59
+ TIP: Run sample application using MongoDB session store using
60
+ `$mvn spring-boot:run -Pmongodb`.
Original file line number Diff line number Diff line change 94
94
</dependency >
95
95
</dependencies >
96
96
</profile >
97
+ <profile >
98
+ <id >mongodb</id >
99
+ <dependencies >
100
+ <dependency >
101
+ <groupId >org.springframework.session</groupId >
102
+ <artifactId >spring-session-data-mongodb</artifactId >
103
+ </dependency >
104
+ <dependency >
105
+ <groupId >org.springframework.boot</groupId >
106
+ <artifactId >spring-boot-starter-data-mongodb</artifactId >
107
+ </dependency >
108
+ </dependencies >
109
+ </profile >
97
110
</profiles >
98
111
</project >
You can’t perform that action at this time.
0 commit comments