Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference documentation mentions HashOperations to be autowired #2828

Closed
imba-tjd opened this issue Jan 11, 2024 · 0 comments
Closed

Reference documentation mentions HashOperations to be autowired #2828

imba-tjd opened this issue Jan 11, 2024 · 0 comments
Labels
type: documentation A documentation update

Comments

@imba-tjd
Copy link
Contributor

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.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 11, 2024
@mp911de mp911de changed the title docs: HashOperations fails to be autowired Reference documentation mentions HashOperations to be autowired Jan 11, 2024
@mp911de mp911de added type: documentation A documentation update and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 11, 2024
@mp911de mp911de added this to the 3.2.2 (2023.1.2) milestone Jan 11, 2024
mp911de added a commit that referenced this issue Jan 11, 2024
Add missing property editors to inject requested operations.

See #2828
mp911de added a commit that referenced this issue Jan 11, 2024
Add missing property editors to inject requested operations.

See #2828
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation update
Projects
None yet
Development

No branches or pull requests

3 participants