关于springboot整合redis踩的一个小坑

The URL '127.0.0.1' is not valid for configuring Spring Data Redis. The scheme 'null' is not supported. Action: Use the scheme 'redis://' for insecure or 'rediss://' for secure Redis standalone configuration.

 

报错让我加redis协议

细看后发现application.yml配置文件应该是写host而不是url

posted @ 2022-04-04 21:38  dronff  阅读(674)  评论(0)    收藏  举报