Closed
Description
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.
- HashOperations not being autowired [DATAREDIS-8] #586
- https://stackoverflow.com/questions/44709092/redis-hashoperations-dependency-not-found
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.