Fix documentation to use resource injection for RedisTemplate operations.
Closes #2828
This commit is contained in:
@@ -31,7 +31,7 @@ public class Person {
|
||||
|
||||
public class HashMapping {
|
||||
|
||||
@Autowired
|
||||
@Resource(name = "redisTemplate")
|
||||
HashOperations<String, byte[], byte[]> hashOperations;
|
||||
|
||||
HashMapper<Object, byte[], byte[]> mapper = new ObjectHashMapper();
|
||||
|
||||
Reference in New Issue
Block a user