赞
踩
在启动redis时指定redis的配置文件
引用自redis.conf 原话:
Note that in order to read the configuration file ,Redis must be started with the file path as first argument :
./redis-server /path/to/redis.conf
redis读取配置文件,必须在启动参数的第一个位置指定配置文件路径
springboot中使用redisTemplate往server端存kv对时,redisTemplate会多存几个字符,应该是序列化导致的,结果就是在程序中使用api存数据,在redis客户端取不到,或者客户端存,程序取不到的情况
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。