Apache Camel Redis:AUTH 选项?

Apache Camel Redis: AUTH option?

如何在配置 Apache Camel Redis 组件时指定 AUTH 凭证?我想做的所有操作(例如 LPUSH,但要通过已经完成 AUTH 的已建立连接)

您可以定义 bean 并将其传递到您的连接 URI。

<bean id="connectionFactory" class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory" p:host-name="server" p:port="6379" p:password="foobared" /> 

spring-redis://localhost:6379?connectionFactory=#connectionFactory&command=SUBSCRIBE&channels=foo