问题描述
我正在尝试使用Redis运行示例Spring Boot应用程序。
我正在使用jedis连接工厂,并将其设置在Redis Template的连接工厂中。
我设法找到一个MSI文件以在Windows上安装Redis,并且能够在服务窗口中看到它的运行情况,并且还在命令提示符下列出了相同的过程。
在日志中获取404的GET请求。
解决方法
请求应该是localhost:8080/redis/findAll
,原因是在该级别的@RequestMapping('redis')
会优先于该类中的每个请求