Redis 奇葩问题
先贴错误码
Unexpected exception while processing command
这个奇葩的问题查了很久,后面突然顿悟,应该是Redis记住了第一次的数据类型,后面即使换了数据类型也不会改变之前的数据类型。
跟代码发现是codec变成了默认的了
后续
public RedissonBatch(EvictionScheduler evictionScheduler, CommandAsyncExecutor executor, BatchOptions options) {this.executorService = new CommandBatchService(executor, options);this.evictionScheduler = evictionScheduler; }
RedisConfig 明明有设置Codec 是JSON
突然顿悟是不是配置没有生效,查了一通配置,最后发现启动类往里放了,没有加载外面的类,至此,这个奇葩的问题告破
又一次阴沟里翻船了。