https://docs.spring.io/spring-data/redis/reference/redis/hash-mappers.html
@Autowired
HashOperations<String, byte[], byte[]> hashOperations;
this won't work. There are some discussion about it.
it turns out this works.
@Resource(name = "redisTemplate")
HashOperations<String, byte[], byte[]> hashOperations;
In the mean time, @Autowired @Qualifier("redisTemplate") fails. I don't konw why.