如何在Windows上调用集成了Redis的Restful api方法?

问题描述

我正在尝试使用Redis运行示例Spring Boot应用程序。 我正在使用jedis连接工厂,并将其设置在Redis Template的连接工厂中。 我设法找到一个MSI文件以在Windows上安装Redis,并且能够在服务窗口中看到它的运行情况,并且还在命令提示符下列出了相同的过程。 在日志中获取404的GET请求。

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

解决方法

请求应该是localhost:8080/redis/findAll,原因是在该级别的@RequestMapping('redis')会优先于该类中的每个请求