Backgound
I met a problem that data is digital gibberish on RDM while I am trying to make some tests running to learn about Redis with Spring Boot on Idea.
Congratulations that RNG won the 2022 Msi Championship Of LOL. 祝贺RNG获得MSI 冠军~~~~~~~~~~
Method1:
//RedisTemplate一定要加上泛型,而且泛型是String,Object也会乱码
@Autowired
private RedisTemplate<String , String> redisTemplate;
Method2:
// autowired StringRedisTemplate Class someone already finished,stable to use.
@Autowired
private StringRedisTemplate stringRedisTemplate;
Method3: Set Spring Boot Config
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import