I\'m reading the spring-data-redis reference guide.
In the 5.5 capther,we create the redisTemplate
bean in spring config xml File.
Spring IOC container do the magic for you:
class ListOperationsEditor extends PropertyEditorSupport {
ListOperationsEditor() {
}
public void setValue(Object value) {
if(value instanceof RedisOperations) {
super.setValue(((RedisOperations)value).opsForList());
} else {
throw new IllegalArgumentException("Editor supports only conversion of type " + RedisOperations.class);
}
}
}