本人在练习黑马附近商铺的时候出现bug。
出现错误原因:
2022-11-03 09:25:05.397 ERROR 12956 --- [nio-8081-exec-1] com.hmdp.config.WebExceptionAdvice : org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR unknown command 'GEOSEARCH'
原因:应该是本地的redis版本太低。
主要借鉴于B站的一位网友的评论:
大家可以按照相应的方法去试一下!!!