...
|
...
|
@@ -78,23 +78,6 @@ |
|
|
<aop:advisor pointcut-ref="serviceMethodPoint" advice-ref="serviceMethodInterceptor"/>
|
|
|
</aop:config>
|
|
|
|
|
|
<!-- Redis 配置 start -->
|
|
|
<bean id="jedisPoolConfig" class="redis.clients.jedis.JedisPoolConfig">
|
|
|
<property name="maxTotal" value="300" />
|
|
|
<property name="maxIdle" value="10" />
|
|
|
<property name="maxWaitMillis" value="1000" />
|
|
|
<property name="testOnBorrow" value="true" />
|
|
|
</bean>
|
|
|
<bean id="jedisPool" class="redis.clients.jedis.JedisPool">
|
|
|
<constructor-arg index="0" ref="jedisPoolConfig" />
|
|
|
<constructor-arg index="1" value="${redis.server}" />
|
|
|
<constructor-arg index="2" value="${redis.port}" />
|
|
|
</bean>
|
|
|
<!-- 包装类 -->
|
|
|
<bean id="redisUtil" class="com.yoho.search.utils.RedisUtil">
|
|
|
<property name="jedisPool" ref="jedisPool" />
|
|
|
</bean>
|
|
|
|
|
|
<bean id="applicationContextUtil" class="com.yoho.search.utils.ApplicationContextUtil">
|
|
|
</bean>
|
|
|
<!-- Redis 配置 end -->
|
...
|
...
|
|