- Spring Boot 2.4
- Spring Web MVC
- Redis 6.2
- Redis Server Docker install and running
# pull redis
sudo docker pull redis:6.2.1
# start container first time
sudo docker run --name my-redis -d -p 6379:6379 redis:6.2.1
- Redis Command Line Tool 설치 (Ubuntu)
#install redis-cli
sudo apt-get install redis-tool
# ping to server
redis-cli -h localhost -p 6379 ping
- Groovy : net.gaeco.redisdemo.controller.RedisController
- Redis String 테스트 : http://localhost:8080/redis/string