Search code examples
javaspringwindowsredisjedis

How to invoke my restful api method integrated with redis on windows?


I am trying to run a sample spring boot application with redis. I am using the jedis connection factory and setting it in Redis Template's connection factory. I managed to find a MSI file to install redis on windows & I am able to see it running in the services window & also list the process of the same in the command prompt. Getting 404 for the GET requests in the logs.

redis command prompt process

redis instance running as a service

redis template/ jedis config code

code part 1

restful method which is not getting fired properly & ending up as 404

browser testing

intellij logs after invoking in browser


Solution

  • Request should have been localhost:8080/redis/findAll, reason is that @RequestMapping('redis') at class level gets preprended before every request in that class