Skip to content

jeremyprime/spring-data-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spring Data Examples

These examples show how to use Spring Data Redis (using either Spring or Spring Boot).

Build and Deploy

Assumes Redis or Valkey are already running on port 6379.

Deploy one example at a time as they both use the same port, press CTRL+C to stop.

Spring Demo:

cd spring-demo
mvn clean jetty:run

Spring Boot Demo:

cd spring-boot-demo
mvn clean spring-boot:run

Complex Demo (Console App):

cd complex-demo
mvn clean compile exec:java

Usage

Call application endpoints:

curl -X POST "http://localhost:8080/api/data/set?key=mykey&value=hello_redis"
curl "http://localhost:8080/api/data/get?key=mykey"
curl -X DELETE "http://localhost:8080/api/data/delete?key=mykey"

About

Examples of using Spring Data modules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages