BAEL-2886 Mongodb spring session code

This commit is contained in:
Pavan Shankar Koli 2019-05-10 22:39:38 +05:30
parent 05ba8a7ac3
commit 35693612df
3 changed files with 17 additions and 10 deletions

View File

@ -17,6 +17,7 @@
<modules> <modules>
<module>spring-session-jdbc</module> <module>spring-session-jdbc</module>
<module>spring-session-redis</module> <module>spring-session-redis</module>
<module>spring-session-mongodb</module>
</modules> </modules>
</project> </project>

View File

@ -1,4 +1,4 @@
This module is for Spring Session with JDBC tutorial. This module is for Spring Session with MONGO DB tutorial.
Jira BAEL-1911 Jira BAEL-2886
### Relevant Articles: ### Relevant Articles:

View File

@ -4,11 +4,11 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>spring-session-jdbc</artifactId> <artifactId>spring-session-mongodb</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<name>spring-session-jdbc</name> <name>spring-session-mongodb</name>
<packaging>jar</packaging> <packaging>jar</packaging>
<description>Spring Session with JDBC tutorial</description> <description>Spring Session with MongoDB tutorial</description>
<parent> <parent>
<artifactId>parent-boot-2</artifactId> <artifactId>parent-boot-2</artifactId>
@ -22,16 +22,18 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.session</groupId> <groupId>org.springframework.session</groupId>
<artifactId>spring-session-jdbc</artifactId> <artifactId>spring-session-data-mongodb</artifactId>
<version>${spring-session-data-mongodb.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.h2database</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>h2</artifactId> <artifactId>spring-boot-starter-data-mongodb</artifactId>
<version>${h2.version}</version>
<scope>runtime</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
@ -39,6 +41,10 @@
</dependency> </dependency>
</dependencies> </dependencies>
<properties>
<spring-session-data-mongodb.version>2.1.3.RELEASE</spring-session-data-mongodb.version>
</properties>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>