dfdfdf
程序员文章站
2022-07-10 17:56:06
...
<!--连接池管理 -->
<bean id="proxyPollingConnectionManager"
class="org.apache.http.impl.conn.PoolingHttpClientConnectionManager">
<property name="maxTotal" value="${proxy.http.maxTotal}" />
<property name="defaultMaxPerRoute" value="${proxy.http.maxPerRoute}" />
</bean>
<!-- 连接池信息 -->
<bean id="httpClientUtil" class="com.pingan.ff.esb.proxy.common.http.HttpClientUtil">
<property name="httpConfig" ref="proxyHttpConfig" />
<property name="cm" ref="proxyPollingConnectionManager" />
</bean>
<!-- 远程服务信息 -->
<bean id="proxyHttpConfig" class="com.pingan.ff.esb.proxy.common.config.HttpConfig">
<property name="socketTimeOut" value="${proxy.http.socketTimeOut}" />
<property name="connectionTimeOut" value="${proxy.http.connectionTimeOut}" />
<property name="maxPerRoute" value="${proxy.http.maxPerRoute}" />
<property name="usePoolEnable" value="${proxy.http.usePool.enable}" />
</bean>
<bean id="proxyPollingConnectionManager"
class="org.apache.http.impl.conn.PoolingHttpClientConnectionManager">
<property name="maxTotal" value="${proxy.http.maxTotal}" />
<property name="defaultMaxPerRoute" value="${proxy.http.maxPerRoute}" />
</bean>
<!-- 连接池信息 -->
<bean id="httpClientUtil" class="com.pingan.ff.esb.proxy.common.http.HttpClientUtil">
<property name="httpConfig" ref="proxyHttpConfig" />
<property name="cm" ref="proxyPollingConnectionManager" />
</bean>
<!-- 远程服务信息 -->
<bean id="proxyHttpConfig" class="com.pingan.ff.esb.proxy.common.config.HttpConfig">
<property name="socketTimeOut" value="${proxy.http.socketTimeOut}" />
<property name="connectionTimeOut" value="${proxy.http.connectionTimeOut}" />
<property name="maxPerRoute" value="${proxy.http.maxPerRoute}" />
<property name="usePoolEnable" value="${proxy.http.usePool.enable}" />
</bean>
上一篇: 面经面经
下一篇: linnux命令大全