From 2e1e46ea829cab68e627240694e68a46398abbdf Mon Sep 17 00:00:00 2001 From: DonaldChung-HK <37064034+DonaldChung-HK@users.noreply.github.com> Date: Tue, 17 Dec 2024 08:36:10 +0000 Subject: [PATCH] #809_adding code to allow storage of HTTPSession with JDBC --- iam-login-service/pom.xml | 9 ++++++++- .../src/main/resources/application-jdbc-session.yml | 6 ++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 iam-login-service/src/main/resources/application-jdbc-session.yml diff --git a/iam-login-service/pom.xml b/iam-login-service/pom.xml index 37f7043c2..648c92963 100644 --- a/iam-login-service/pom.xml +++ b/iam-login-service/pom.xml @@ -87,7 +87,14 @@ org.springframework.session spring-session-data-redis - + + org.springframework.boot + spring-boot-starter-data-jpa + + + org.springframework.session + spring-session-jdbc + org.springframework.boot spring-boot-starter-data-redis diff --git a/iam-login-service/src/main/resources/application-jdbc-session.yml b/iam-login-service/src/main/resources/application-jdbc-session.yml new file mode 100644 index 000000000..183202585 --- /dev/null +++ b/iam-login-service/src/main/resources/application-jdbc-session.yml @@ -0,0 +1,6 @@ +spring: + session: + store-type: jdbc + jdbc: + cleanup-cron: 0 */45 * * * * + table-name: SPRING_SESSION \ No newline at end of file