<bean id="sentinelConfig"
class="org.springframework.data.redis.connection.RedisSentinelConfiguration">
<constructor-arg name="master" value="mymaster" />
<constructor-arg name="sentinelHostAndPorts">
<set>
<value>${sentinelHostAndPort1}</value>
<value>${sentinelHostAndPort2}</value>
<value>${sentinelHostAndPort3}</value>
</set>
</constructor-arg>
</bean>
<bean id="jedisConnectionFactory" class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory">
<constructor-arg ref="sentinelConfig" />
<property name="password" value="${redis.password}" />
</bean>
如果没有配置<property name="password" value="${redis.password}" />
会出现如上错误