{"id":40004227,"url":"https://github.com/vpavic/samples-spring-session","last_synced_at":"2026-01-19T02:03:39.432Z","repository":{"id":38303109,"uuid":"130034253","full_name":"vpavic/samples-spring-session","owner":"vpavic","description":"Samples: Spring Session","archived":false,"fork":false,"pushed_at":"2024-04-29T11:37:30.000Z","size":691,"stargazers_count":2,"open_issues_count":5,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-29T12:46:07.298Z","etag":null,"topics":["hazelcast","java","jdbc","mongodb","redis","samples","spring-boot","spring-framework","spring-session"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vpavic.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-18T09:00:00.000Z","updated_at":"2022-11-25T16:19:25.000Z","dependencies_parsed_at":"2023-02-12T00:45:24.447Z","dependency_job_id":"915c43ba-82b8-4f18-bb8f-cf83553149e5","html_url":"https://github.com/vpavic/samples-spring-session","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vpavic/samples-spring-session","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpavic%2Fsamples-spring-session","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpavic%2Fsamples-spring-session/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpavic%2Fsamples-spring-session/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpavic%2Fsamples-spring-session/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vpavic","download_url":"https://codeload.github.com/vpavic/samples-spring-session/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpavic%2Fsamples-spring-session/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28557784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T00:46:33.223Z","status":"online","status_checked_at":"2026-01-19T02:00:08.049Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hazelcast","java","jdbc","mongodb","redis","samples","spring-boot","spring-framework","spring-session"],"created_at":"2026-01-19T02:03:39.380Z","updated_at":"2026-01-19T02:03:39.426Z","avatar_url":"https://github.com/vpavic.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Samples: Spring Session\n\nimage:https://github.com/vpavic/samples-spring-session/actions/workflows/build.yml/badge.svg[\"Build\", link=\"https://github.com/vpavic/samples-spring-session/actions/workflows/build.yml\"]\n\nThis repository contains sample applications that showcase basic Spring Session functionalities across different web stacks and data stores.\n\nThe name of each sample application contains the web stack integration it's based on, and the data store is uses to store sessions.\nBelow is the list of all the provided sample applications:\n\n* HttpSession\n** Redis\n** JDBC\n** Hazelcast\n** MongoDB\n** Infinispan (3rd party integration)\n* WebSession\n** Redis\n** MongoDB\n\n== Getting Started\n\n=== Requirements\n\nJava 17 is required to run the samples.\n\nThe project is built using Gradle and uses https://docs.gradle.org/current/userguide/gradle_wrapper.html[Gradle Wrapper] to take care of downloading the appropriate Gradle version.\n\n=== Running the Samples\n\nEach sample is a Spring Boot based application that can be run using:\n\n* using the `bootRun` task of the appropriate sample application\n* from your IDE by running sample application's main class\n\nBy default, all samples start web server on port `8080`.\n\n==== HttpSession Redis\n\n[source,sh]\n----\n$ ./gradlew :sample-httpsession-redis:bootRun\n----\n\nBy default, this sample will attempt to connect to Redis running locally at port `6379`.\n\n==== HttpSession JDBC\n\n[source,sh]\n----\n$ ./gradlew :sample-httpsession-jdbc:bootRun\n----\n\nBy default, this sample will attempt to connect to PostgreSQL running locally at port `5432` using database `spring_session`, username `spring_session` and password `spring_session`.\n\nThe project contains the JDBC driver for the following RDMBSs:\n\n* DB2\n* MariaDB\n* MySQL\n* Oracle\n* PostgreSQL\n* SQL Server\n\n==== HttpSession Hazelcast\n\n[source,sh]\n----\n$ ./gradlew :sample-httpsession-hazelcast:bootRun\n----\n\nBy default, this sample will start an embedded Hazelcast instance.\n\n==== HttpSession Infinispan\n\n[source,sh]\n----\n$ ./gradlew :sample-httpsession-infinispan:bootRun\n----\n\nBy default, this sample will start an embedded Infinispan instance.\n\n==== HttpSession MongoDB\n\n[source,sh]\n----\n$ ./gradlew :sample-httpsession-mongodb:bootRun\n----\n\nBy default, this sample will attempt to connect to MongoDB running locally at port `27017`.\n\n==== WebSession Redis\n\n[source,sh]\n----\n$ ./gradlew :sample-websession-redis:bootRun\n----\n\nBy default, this sample will attempt to connect to Redis running locally at port `6379`.\n\n==== WebSession MongoDB\n\n[source,sh]\n----\n$ ./gradlew :sample-websession-mongodb:bootRun\n----\n\nBy default, this sample will attempt to connect to MongoDB running locally at port `27017`.\n\n=== Building from Source\n\nTo build the project from source, you will need to have Docker installed.\n\nTo project can be built the `build` task:\n\n[source,sh]\n----\n$ ./gradlew build\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvpavic%2Fsamples-spring-session","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvpavic%2Fsamples-spring-session","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvpavic%2Fsamples-spring-session/lists"}