Skip to content

Reference documentation mentions HashOperations to be autowired #2828

Closed
@imba-tjd

Description

@imba-tjd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions