This project is an example of SpringBoot Data Redis.
Springboot, Redis, Java8을 이용하여 만든 개인 프로젝트 입니다.
build.gradle
compile('org.springframework.boot:spring-boot-starter-data-redis')
compile 'org.springframework.data:spring-data-redis'
compile group: 'redis.clients', name: 'jedis', version: '2.9.0'
compile group: 'it.ozimov', name: 'embedded-redis', version: '0.7.1'
You can test by using curl, URL, Swagger.
Curl
curl -X GET --header 'Accept: application/json' 'http://localhost:8081/api/user/userid'
Request URL
http://localhost:8081/api/user
http://localhost:8081/api/user/userid
Swagger
http://localhost:8081/swagger-ui.html
Screenshot
The repository contains some test cases to cover both api test and repository test.
./gradlew test