Skip to content

Commit

Permalink
#809_adding code to allow storage of HTTPSession with JDBC
Browse files Browse the repository at this point in the history
  • Loading branch information
DonaldChung-HK committed Dec 17, 2024
1 parent def2c42 commit 0f478c9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
9 changes: 8 additions & 1 deletion iam-login-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,14 @@
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-data-redis</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-jdbc</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
Expand Down
22 changes: 22 additions & 0 deletions iam-login-service/src/main/resources/application-jdbc-session.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#
# Copyright (c) Istituto Nazionale di Fisica Nucleare (INFN). 2016-2021
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

spring:
session:
store-type: jdbc
jdbc:
cleanup-cron: 0 */45 * * * *
table-name: SPRING_SESSION

0 comments on commit 0f478c9

Please sign in to comment.