springmvc+mybiats+redis项目启动报错org.springframework.data.redis.RedisConnectionFailureException

Q:最新为了学习redis在网上下载了一个demo,修改了mysql和redis相关的配置文件的信息,启动没错,调用接口后报错org.springframework.data.redis.RedisConnectionFailureException,经排查,redis和mysql安装均没有问题且可以正常运行?

A:经过查看网上大神各种回复,最终确定问题我的配置文件redis.propertis里面redis服务地址多一个空格,汗,删掉空格之后,调用接口正常了,redis也能启动了

另外:给大伙贴下我下载的者demo的地址https://www.cnblogs.com/smfx1314/archive/2018/04/26/8955289.html,想学习redis+springmvc+mybaits的小伙伴可以去看原博客的地址取下载,一起进步!

猜你喜欢

转载自blog.csdn.net/yuyeqianhen/article/details/89881262