Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
a39ccc2f
Commit
a39ccc2f
authored
Sep 21, 2017
by
Vedran Pavic
Committed by
Stephane Nicoll
Sep 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add MongoDB support to Spring Session sample
Closes gh-10374
parent
f6cbee6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
README.adoc
spring-boot-samples/spring-boot-sample-session/README.adoc
+12
-0
pom.xml
spring-boot-samples/spring-boot-sample-session/pom.xml
+13
-0
No files found.
spring-boot-samples/spring-boot-sample-session/README.adoc
View file @
a39ccc2f
...
...
@@ -6,6 +6,7 @@ supports multiple session store types, including:
* `Redis`
* `JDBC`
* `Hazelcast`
* `MongoDB`
...
...
@@ -46,3 +47,14 @@ automatically configure the underlying `HazelcastInstance`.
TIP: Run sample application using Hazelcast session store with
`$mvn spring-boot:run -Phazelcast`.
=== MongoDB
Add `org.springframework.session:spring-session-data-mongodb` and
`spring-boot-starter-data-mongodb` dependencies to the project and make sure it is
configured properly (by default, a MongoDB instance with the default settings is expected
on your local box).
TIP: Run sample application using MongoDB session store using
`$mvn spring-boot:run -Pmongodb`.
spring-boot-samples/spring-boot-sample-session/pom.xml
View file @
a39ccc2f
...
...
@@ -94,5 +94,18 @@
</dependency>
</dependencies>
</profile>
<profile>
<id>
mongodb
</id>
<dependencies>
<dependency>
<groupId>
org.springframework.session
</groupId>
<artifactId>
spring-session-data-mongodb
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-mongodb
</artifactId>
</dependency>
</dependencies>
</profile>
</profiles>
</project>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment