& lt; Bean id="shardedJedisPool" & gt;
& lt; Constructor - arg index="0" ref="jedisPoolConfig"/& gt;
& lt; The constructor - arg index="1" & gt;
& lt; List>
& lt; The bean name="master" & gt;
& lt; Constructor - arg index="0" value="https://bbs.csdn.net/topics/${redis. Host}"/& gt;
& lt;/bean>
& lt;/list>
& lt;/constructor - arg>
& lt;/bean>
& lt; Bean id="jedisPoolConfig" & gt;
& lt; The property name="maxTotal" value="https://bbs.csdn.net/topics/1000"/& gt;
& lt; The property name="maxIdle" value="https://bbs.csdn.net/topics/100"/& gt;
& lt; The property name="numTestsPerEvictionRun" value="https://bbs.csdn.net/topics/1024"/& gt;
& lt; The property name="timeBetweenEvictionRunsMillis" value="https://bbs.csdn.net/topics/30000"/& gt;
& lt; The property name="minEvictableIdleTimeMillis" value="https://bbs.csdn.net/topics/-1"/& gt;
& lt; The property name="softMinEvictableIdleTimeMillis" value="https://bbs.csdn.net/topics/10000"/& gt;
& lt; The property name="maxWaitMillis" value="https://bbs.csdn.net/topics/5000"/& gt;
& lt; The property name="testOnBorrow" value="https://bbs.csdn.net/topics/true"/& gt;
& lt; The property name="testWhileIdle" value="https://bbs.csdn.net/topics/true"/& gt;
& lt; The property name="testOnReturn" value="https://bbs.csdn.net/topics/false"/& gt;
& lt; The property name="jmxEnabled" value="https://bbs.csdn.net/topics/true"/& gt;
& lt; The property name="jmxNamePrefix" value="https://bbs.csdn.net/topics/youyuan"/& gt;
& lt; The property name="blockWhenExhausted" value="https://bbs.csdn.net/topics/false"/& gt;
& lt;/bean>
CodePudding user response:
Yml file configuration, the configuration of the specific content online there are a lot ofCodePudding user response:
Mainly the don't know how to configure& lt; Bean id="shardedJedisPool" & gt;
& lt; Constructor - arg index="0" ref="jedisPoolConfig"/& gt;
& lt; The constructor - arg index="1" & gt;
& lt; List>
& lt; The bean name="master" & gt;
& lt; Constructor - arg index="0" value="https://bbs.csdn.net/topics/${redis. Host}"/& gt;
& lt;/bean>
& lt;/list>
& lt;/constructor - arg>
& lt;/bean>
CodePudding user response: