nested exception is io.lettuce.core.RedisCommandExecutionException: ERR unknown command 'PSETEX'
報錯內容:
java.lang.IllegalStateException: Failed to execute ApplicationRunner
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:778) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:765) ......
Caused by: org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR unknown command 'PSETEX'
......
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:52) ~[spring-data-redis-2.2.3.RELEASE.jar:2.2.3.RELEASE]
報錯截圖:
報錯原因:
Redis版本過低, 需要更換更新的版本。